Skip to content

Python version of traditional paper and pencil game - paper soccer.

License

Notifications You must be signed in to change notification settings

NicTiNereknu/football

Repository files navigation

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.