Games Special-Session SIGCSE-03 - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Games Special-Session SIGCSE-03

Description:

Matrix M N, Robots Red, Blue. Each move - horizontal / vertical ... Wyt Rooks. X. Each player chooses a rook and moves it any number of vertical xor horizontal ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 13
Provided by: csBer
Category:

less

Transcript and Presenter's Notes

Title: Games Special-Session SIGCSE-03


1
Games Special-Session SIGCSE-03
  • David Ginat
  • Tel-Aviv University

2
Laser War
  • Matrix M?N, Robots Red, Blue
  • Each move - horizontal / vertical
  • Fire-lines - horizontal vertical
  • Crossing of fire-line game ends








3
Laser War
  • 1. Backtracking through all the possible game
    scenarios
  • 2. Dynamic Programming up to (M-1)?(N-1)
    different-size rectangles between the robots








4
Laser War
  • Look for a playing strategy, by
    simplification






5
Laser War
  • Invariant property
  • Horiz-distance Vert-distance








6
Laser War
  • Two rooms, concurrently








7
Wyt Rooks






X
  • Each player chooses a rook and moves it any
    number of vertical xor horizontal spaces toward
    the X. Last to move wins (normal form).

8
Pawn on a Board
  • Each player moves the pawn, horizontally or
    vertically, to an adjacent square,
    which was not-yet-visited. Last to move wins
    (normal form).








9
Pawn on a Board
  • Invariant
  • Auxiliary coloring








10
Multiple by 2..9
  • Starting at N1, two players multiply N by one of
    the integers 2,3,,9, in
    alternating turns.
    Free choice of one of these integers in each
    turn.
  • The first to cross 1000 wins.
  • Example
  • 1 ? 5 ? 45 ? 90 ? 270 ?

11
Multiple by 2..9
  • Backward reasoning
  • 1000
  • 112 999
  • 56 111
  • 7 55
  • 4 6
  • 1

12
Application in Class
  • Motivate, Illustrate, Exercise
  • - Invariance
  • - Design techniques, recursion
  • - Auxiliary elements
  • - Lookup table, pre-processing
  • - Mathematical patterns
  • - Problem solving heuristics
Write a Comment
User Comments (0)
About PowerShow.com