- places to look in the code
- Viff overview
docker-compose build
./launch_shootout_with_docker.sh
See the Battleship Game section for alternative ways to play the game.
- modifying the millionaires problem to see what is going on.
- copy
battleship.py
into yourviff/apps/
directory.
$> ln -s ic3_mpc/battleship.py ic3_mpc/launch_ship.sh {your_viff_dir}/apps/battleship.py
$> ln -s ic3_mpc/launch_ship.sh {your_viff_dir}/apps/launch_ship.sh
$> cd viff/apps
$> ./launch_ships.sh
$> python generate-config-files.py -n 3 -t 1 localhost:9001 localhost:9002 localhost:9003
$> python battleship.py --no-ssl player-1.ini
$> python battleship.py --no-ssl player-2.ini
$> python battleship.py --no-ssl player-3.ini
Work in progress
$ pip install future
$ python main_loop.py
Welcome to the MPC Battleship game. Type help or ? to list commands.
(battleship)
(battleship) help
Documented commands (type help <topic>):
========================================
board help
Undocumented commands:
======================
recv_attack send_attack show_board
(battleship)
$ python main_loop.py
(battleship) board
carrier (length 5) default: 0 0 0? 0 3 3
...