Skip to content

Play Pentago in your terminal. It's almost addicting.

Notifications You must be signed in to change notification settings

patrickeddy/pentago-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Play Pentago in your terminal. It's almost addicting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages