Duo By: Fernando & Vivian.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Statistical Techniques I
Martin Boyd Christopher Hirunthanakorn
Place captured red pieces here Place captured yellow pieces here To use as Kings Rules New Game Exit Left mouse click on piece – drag to desired location.
Representing a Game Board In a game, we represent the action taking place using an array – In a very simple game, we use individual variables to represent.
Chapter 4 Gates and Circuits.
Loops For loop for n = [ ] code end While loop while a ~= 3 code end.
© 2007 Ray S. Babcock Tracks Game is played on a (nxn) set of squares. There are three possible moves (labeled A,B,C). Players alternate making a move.
Bell Work A card is drawn at random from the cards shown and not replaced. Then, a second card is drawn at random. Find each probability. 1. P(two even.
Using Reduction for the Game of NIM. At each turn, a player chooses one pile and removes some sticks. The player who takes the last stick wins. Problem:
3x3x3 Rubik’s Cube Solver Kevin Van Kammen Kyle Rupnow Jason Lavrenz.
Great Theoretical Ideas in Computer Science.
Great Theoretical Ideas in Computer Science.
Virginia Mathematics 2009 Grade 5 Standards of Learning Virginia Department of Education K-12 Mathematics Standards of Learning Institutes October 2009.
Chess Merit Badge Chess Basics: Set Up the Board & Basic Rules by Joseph L. Bell © 2011.
The Hat Game 11/19/04 James Fiedler. References Hendrik W. Lenstra, Jr. and Gadiel Seroussi, On Hats and Other Covers, preprint, 2002,
Midsegments. Vocabulary Midsegment – The segment connecting the midpoint of the sides of a triangle, also the segment connecting the legs of a trapezoid.
Apostles Chess Club Session Three. Chess Piece Symbols The symbols shown above are the ones most used when showing chess pieces in print or on the internet.
Floating Point (a brief look) We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large numbers,
Chance Experiments Have you ever heard a weatherman say there is a 40% chance of rain tomorrow or a football referee tell a team there is a 50/50 chance.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
On A Side Note: Cartoon Drawings Find a cartoon from a newspaper, magazine, or computer. Cut around the edges of your cartoon so the edges are straight.
Every chess master was once a beginner. Irving Chernev
Karnaugh Map and Circuit Design.
X, Y X axis Y axis Let’s just start with a point on a plane surface like this sheet of paper. Now coordinate “x” describes how far to the right, and “y”
Model with Arrays MAFS.3.OA.1.1, MAFS.3.OA.1.3. Model with Arrays How could you model 3 x 4?
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
The Standard Genetic Algorithm Start with a “population” of “individuals” Rank these individuals according to their “fitness” Select pairs of individuals.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
CHESS Club.  The game of chess is over 1300 years old and is one of the most popular games in the world. It has received more total thought time than.
Modeling the Game of Brain Cube Leslie Muzulu, Kristal Jameson, and Kathy Radloff; St. Catherine University Game Description Brain Cube is a puzzle game.
Content Game of Nim Impartial Games Sprague-Grundy theorem
Sketching and drawing projects Sketch A rough drawing of an object, not to scale DrawingIs a likeness of an object drawn to scale Both of these are used.
CHESS “The Ultimate GAME of Challenge and Strategy”
Hex: a Game of Connecting Faces. Player 1 Player 2 Players take turns placing blue chips (player 1) and red chips (player 2). Player 1 plays first. Player.
Formulas. Demonstrate a 2 + 2ab + b 2 = (a + b) 2 Find the area of the big square by adding up the areas of the 2 squares and 2 rectangles: a 2 + ab +
The simple linear regression model and parameter estimation
Planar Graphs Hubert Chan (Chapter 9.7) [O2 Proof Techniques]
Algorithms.
Sequential Placement Optimization Games: Poker Squares, Word Squares, and Take It Easy! Todd W. Neller Abstract: In this talk, we teach how to play “Poker.
Great Theoretical Ideas in Computer Science
PLAY ON AND SWITCH ON! Chess Game
Four Points in a Row.
Writing Equations Using the Distributive Property
Presented by: Jacob Thurston Project 19 – How to Play Checkers 3/8/12
Algorithms and Networks
Four Numbers Game.
Judith Montgomery, Director Monterey Bay Area Math Project
Origami Let’s make a Fish!.
Digital Logic Structures Logic gates & Boolean logic
NIM - a two person game n objects are in one pile
CSE (c) S. Tanimoto, 2001 Search-Introduction
Solving Quadratic Equations by the Quadratic Formula
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Novel Project An Awesome Alternative to the dreaded Book Report…
Road to Civil War booklet directions
Bingo Example: Analysis
Structure diagrams for lab 13
Bingo Example: Analysis
Electronic Memory.
FOUR PLAYER CHESS.
Circles Squares or Rectangles Triangles
Colorama Lukasz and Kenny Introduce group members.
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Snakes and Ladders Game with Science
2019 SAIMC Puzzle Challenge General Regulations
Presentation transcript:

Duo By: Fernando & Vivian

GAME DESCRIPTION a set of ominoes with 21 Blokus tiles: Valid move: 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

GAME CLASSIFICATION DETERMINATE NON ZERO-SUM PERFECT INFORMATION SEQUENTIAL NEITHER NORMAL NOR MISERE

How many game states does Is this game fair or unfair? RESEARCH QUESTIONS How many game states does the Blokus Duo have? Is this game fair or unfair?

GAME STATES Step 1: Find the size of board corresponding to the ominoes that is offered. Step 2: Start with the smaller size of the board, and find the number of game states. Step 3: Use the combination and the number of corners on the board to estimate the bigger size of the board.

STEP 1: BOARD SIZE 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

Step 1 Ominoes offered Free polyominoes 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 29 8x8 All 21 pieces N = 5 21 89 14x14

Game states for smaller board Step 2: Game states for smaller board Draw out every game configurations for smaller board. For 3x3 board, 40 game states; For 5x5 board, 2500 game states;

combination for Bigger board Step 3: combination for Bigger board 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

Step 3 take 5x5 as an example Player 1

Step 3 take 5x5 as an example Player 2

Step 3 take 5x5 as an example 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.

Step 3 8x8 size: 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.

Step 3 14x14 size: The total number of game states is 2.28475 x 10^23. 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.

What can our computer program do? 2 different versions. Human only version Computer only version.

Move Input Either player 1 or player 2 inputs the following: Piece Row Column Orientation This will be demonstrated in a bit.

Piece Representations Since 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.

Pieces Example

Version 2 This 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

Some results 3x3 board. 5x5 board Most number of boards found was 574 Most number was 3445