Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 823 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 823 Bytes

Fotbal (Hokej) / Футбол (игра на бумаге) / Paper soccer

Python version of traditional paper and pencil game, for more information go to wikipedia.

GUI is created in PAGE.

Three modes:

  • human vs human
  • human vs ai
  • ai vs ai

How AI works (code in playerAI.play()):

  1. AI tries to find all paths for current field situation.
  2. For every path (from 1.) AI simulates opponent's move, how close can opponent reach AI's goal.
  3. AI chooses one path by filtering results by longest path (from 1.) and farthest path's end to AI goal (from 2.).

Main window

field

Settings window

field

Compile

Game can be compiled with cx_freeze python setup.py build.