Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.3 KB

README.md

File metadata and controls

82 lines (61 loc) · 1.3 KB

Pentago AI

Pentago is a game of skill, determination, and a whole lot of being stronger than a not-very-well-implemented-min-max-alpha-beta-pruning-game-search AI!

Before you play, you should probably read the rules of Pentago.

Play

  1. Open up Terminal and cd into the project folder
  2. Run python Pentago.py
  3. Follow the prompt to play

Preview

Welcome to Pentago

Please choose a color (b, w) : b
=> You are b
=> AI is w
- - - - - - - - - - - - - - - - - - -

+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+


AI moving...

: 1/1 1L
- - - - - - - - - - - - - - - - - - -

+-------+-------+
| . . . | . . . |
| . . . | . . . |
| w . . | . . . |
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+


Your turn to move.

: 3/8 1r

...

+-------+-------+
| w w w | w . . |
| . b b | . . . |
| . . w | . . . |
+-------+-------+
| b . . | . b . |
| . . . | . . . |
| . b . | . . . |
+-------+-------+


AI moving...

: 2/2 1L

+-------+-------+
| w w w | w w . |
| . b b | . . . |
| . . w | . . . |
+-------+-------+
| b . . | . b . |
| . . . | . . . |
| . b . | . . . |
+-------+-------+

Game over! Winner is: w