Home Applications Sea Battle

Sea Battle

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4.75
2 reviews
0
Awards
235
Views
6
IPM installs
3
3
Details
Releases
Reviews
Issues
Pull requests
The code is an ObjectScript remake of Python example in CodeAcademy

What's new in this version

Full Embedded Python support!
call
USER>d ##class(eshvarov.sample.SeaBattle.GamePython).Run()

For Python

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 ZPM

zpm:USER>install eshvarov-sample-seabattle

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>do ##class(eshvarov.sample.SeaBattle.Game).Run()
Read more
Made with
Install
zpm install eshvarov-sample-seabattle download archive
Version
1.1.209 Oct, 2022
Category
Technology Example
Works with
InterSystems IRIS
First published
19 May, 2019
Last checked by moderator
27 Jun, 2023Works