This repository covers the following recipe from code.activestate.com:
THE GAME OF BATTLESHIPS IN PYTHON
Created by Captain DeadBones on Sat, 22 Feb 2014
Another fun game that is fun to program and play. No special AI (yet). But still an entertaining game.
If you already have the State Tool installed you can simply run
state activate ActiveState-Recipes/recipe-578816-the-game-of-tic-tac-toe-in-python
If you do not have the State Tool installed you can use the following convenient one-liner.
Linux:
sh <(curl -q https://platform.activestate.com/dl/cli/install.sh) -n -f && state activate --path $HOME/ActiveState-Recipes/recipe-578816-the-game-of-tic-tac-toe-in-python ActiveState-Recipes/recipe-578816-the-game-of-tic-tac-toe-in-python
Windows:
powershell "Set-Item -Path Env:NOPROMPT_INSTALL -Value 'true'; IEX(New-Object Net.WebClient).downloadString('https://platform.activestate.com/dl/cli/install.ps1')" && state activate --path %APPDATA%/ActiveState-Recipes/recipe-578816-the-game-of-tic-tac-toe-in-python ActiveState-Recipes/recipe-578816-the-game-of-tic-tac-toe-in-python
macOS: not yet supported