Skip to content

sabinaya/Hip-Game-Artificial-Intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hip-Game-Artificial-Intelligence

Implementation of Hip, a classic board game invented by Martin Gardner. It's a 2 player game played on a 9x9 board. Players take turns placing a token on an unoccupied cell. The player who completes any square such that 4 corners are marked by his token loses. The square may be of any size and can be tilted at any angle. Here are a couple of game states that shows the players lose by completing a square.

To see sample example states see here https://github.com/sabinaya/Hip-Game-Artificial-Intelligence/blob/master/Hip%20Sample%20Game%20States.png

To run the c program

  • cc Hip.c
  • ./a.out

To run the python script

  • python hip.py

Sample Input

Sample Output

Game as Django application(Link to the repository):

About

Implementation of Hip Game (Invented by Martin Gardner)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published