No BSD License  

Highlights from
Pentago

5.0

5.0 | 3 ratings Rate this file 1 Download (last 30 days) File Size: 19.47 KB File ID: #20636
image thumbnail

Pentago

by Dan Massie

 

09 Jul 2008 (Updated 11 Jul 2008)

The Mind Twisting Strategy Board Game

| Watch this File

File Information
Description

Played on a 6x6 board. Place a game piece on any unoccupied square, then twist one of the four 3x3 quadrants a quarter turn clockwise or counter-clockwise. First player to get five in a row wins. White is played by the human, black by the computer.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
10 Jul 2008 John D'Errico

Pretty good. The AI might do with some help, since I won the first game I played and I'd never seen the game before. It might have been nice to have different degrees of difficulty, which probably would merely set a search depth for the AI, or perhaps the board size.

I like that I found help in the function, and an H1 line. Not really much help is needed, since it is a simple game to explain. The code was friendly and asked me if I wanted to play again at the end. Well done overall.

28 Jul 2008 krishna lalith

Good Programming...

12 Jun 2009 Dominique Morgan  
Please login to add a comment or rating.
Updates
11 Jul 2008

Updated image.

Tag Activity for this File
Tag Applied By Date/Time
games Dan Massie 22 Oct 2008 10:09:37
pentago Dan Massie 22 Oct 2008 10:09:37
board Dan Massie 22 Oct 2008 10:09:37
game Dan Massie 22 Oct 2008 10:09:37
strategy Dan Massie 22 Oct 2008 10:09:37
go Dan Massie 22 Oct 2008 10:09:37
5 in a row Dan Massie 22 Oct 2008 10:09:37

Contact us at files@mathworks.com