a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the...

20

Transcript of a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the...

Page 1: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.
Page 2: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

•a set of ominoes with 21 Blokus tiles:

• Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed on the board, somewhere near the center)•Valid move:

touches at least one piece of the same color corner-to-corner contact -- edges cannot touch

• Game ends:no more valid move for both players

• Pay off:Whoever has the least number of squares left wins

Page 3: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

• DETERMINATE

• NON ZERO-SUM

• PERFECT INFORMATION

• SEQUENTIAL

• NEITHER NORMAL NOR MISERE

Page 4: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.
Page 5: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Step 1: Find the size of board Step 1: Find the size of board corresponding to the ominoes that is corresponding to the ominoes that is offered.offered.

Step 2: Start with the smaller size of the Step 2: Start with the smaller size of the board, and find the number of game board, and find the number of game states.states.

Step 3: Use the combination and the Step 3: Use the combination and the number of corners on the board to number of corners on the board to estimate the bigger size of the board.estimate the bigger size of the board.

Page 6: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Regular game: 14x14; 21 pieces of ominoes;

# of squares on the board: 14x14 = 196;# of squares the ominoes have: 89;

If the players are offered the free polyominoes of from one to two squares, which is:

Then there are 3 squares on the ominoes,Ratio: 3/89 = (x^2)/196

Page 7: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Ominoes offered

Free polyomino

es of square one through N

# of pieces of ominoes

Total # of squares on

the ominoes

Corresponding size of

board

N = 2 2 3 3x3

N = 3 4 9 5x5

N = 4 9 29 8x8

All 21 pieces

N = 5 21 89 14x14

Page 8: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Draw out every game configurations for smaller board.

For 3x3 board, 40 game states;

For 5x5 board, 2500 game states;

Page 9: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Formula: C (n, r) = n!/(r!(n-r)!)Assume each piece of omino has four corners

If m = the number of moves that has been done for each player c = the number of corners available on the board;

c = 4m – (m - 1) = 3m + 1

C (n, r): n = c x number of orientations of next piece

Page 10: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.
Page 11: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.
Page 12: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

There are other possible orders. Each player has to x (4!)

Player 1: [C (1, 1) + C (8, 1) + C (14, 1) + C (40, 1)] x (4!) = 1512

Player 2: [C (24, 1) + C (8, 1) + C (14, 1) + C (40, 1)] x (4!) = 2064

1512 + 2064 = 3576

3576 >> 2500

Assume all the pieces offered can fit in the board; do not take the side-touch into consideration.

Page 13: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Player 1: [C (1, 1) + C (8, 1) + C (14, 1) + C (40, 1) + C (26, 1) + C (16, 1) + C (76, 1) + C (88, 1) + C (50, 1)] x (9!) = 115,758,720

Player 2: [C (63, 1) + C (8, 1) + C (14, 1) + C (40, 1) + C (26, 1) + C (16, 1) + C (76, 1) + C (88, 1) + C (50, 1)] x (9!) = 138,257,280

115,758,720 + 138,257,280 = 254,016,000

The total number of game states is 254,016,000.

Page 14: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Player 1: [C (1, 1) + C (8, 1) + C (14, 1) + C (40, 1) + C (26, 1) + C (16, 1) + C (76, 1) + C (88, 1) + C (50, 1) + C (56, 1) + C (124, 1) + C (136, 1) + C (148, 1) + C (160, 1) + C (86, 1) + C (184, 1) + C (196, 1) + C (208, 1) + C (220, 1) + C (58, 1) + C (244, 1)] x (21!) = 1.0928 x 10^23

Player 2: [C (195, 1) + C (8, 1) + C (14, 1) + C (40, 1) + C (26, 1) + C (16, 1) + C (76, 1) + C (88, 1) + C (50, 1) + C (56, 1) + C (124, 1) + C (136, 1) + C (148, 1) + C (160, 1) + C (86, 1) + C (184, 1) + C (196, 1) + C (208, 1) + C (220, 1) + C (58, 1) + C (244, 1)] x (21!) = 1.19195 x 10^23

1.0928 x 10^23 + 1.19195 x 10^23 = 2.28475 x 10^23

The total number of game states is 2.28475 x 10^23.

Page 15: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

• 2 different versions.

• Human only version • Computer only version.

Page 16: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Move InputMove InputEither player 1 or player 2 inputs

the following:• Piece• Row• Column• Orientation• This will be demonstrated in a bit.

Page 17: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Piece RepresentationsPiece RepresentationsSince we did not use graphics in

our program we represented the pieces as numbers.

You had to reference a sheet of paper that had the pieces drawn on them and all their orientations.

Page 18: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Pieces ExamplePieces Example

Page 19: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Version 2Version 2This version of the program was

the most helpful.What does the program do?Makes random legal moves.Tell the computer know what size

of board you want to use and how many games you want it to play.

Outputs the total number of different board configurations

Page 20: a set of ominoes with 21 Blokus tiles: Two players, alternate turns to place a piece of omino on the board of 14x14 (The starting points will be fixed.

Some resultsSome results3x3 board.

◦Most number of boards found was 574

5x5 board◦Most number was 3445