Sea BattleSea Battle
Watch
0
Star
1
Category
Technology Example
Works with
Tags
Version
1.0.4
Last updated
2019-11-28
Repository
License
Download
Discuss
Details
Version history
Issues

What's new in this version

zpm format update

Simple terminal game an approach to "Sea Battle". Example of simple ObjectScript method calls and terminal interaction The code is an ObjectScript remake of Python example in CodeAcademy

seabattle

This is cool terminal game "Sea Battle" written in InterSystems IRIS in ObjectScript

Documentation

The game randomly hides the ship and let's you try to find it. The game uses two globals: ^Board and ^Ships Class Game has two parameters: BoardRange - Sea battle the field range Rounds - the number of rounds to try

Installation with Docker

Make sure you have Docker and Git installed

Git clone the repo run in terminal

$ docker-compose up -d

This will create the container and installs code into "SEABATTLE" namespace Open IRIS terminal:

$ docker-compose exec iris iris session iris
USER>zn "SEABATTLE"
SEABATTLE>do ##class(SeaBattle.Game).Run()