MATLAB PROJECT Backgammon - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

MATLAB PROJECT Backgammon

Description:

... PROJECT. Backgammon. ELE 444. Advanced Electronic Design. Laurianne Pichon. Freddy Batista. Lao Vang. Simon Varacca. 4/28/2003. Matlab Project - Backgammon. PLAN ... – PowerPoint PPT presentation

Number of Views:138
Avg rating:3.0/5.0
Slides: 14
Provided by: uni895
Category:

less

Transcript and Presenter's Notes

Title: MATLAB PROJECT Backgammon


1
MATLAB PROJECTBackgammon
  • ELE 444
  • Advanced Electronic Design
  • Laurianne Pichon
  • Freddy Batista
  • Lao Vang
  • Simon Varacca

2
PLAN
  • Brief introduction to BG
  • Programming
  • Backgammon subroutines
  • User interface
  • Connect 2 Windows XP machines
  • Pros Cons

3
Introduction
4
Introduction
5
Backgammon subroutines
  • Inputs
  • Command line
  • Move vector
  • Random dice roll
  • Matlab command rand
  • Double number
  • Max moves function
  • Move algorithm
  • Bearoff function

6
Display
  • a position vector is given
  • PV n1 n2 n3 n4 n26
  • All the pieces sould be positionned as the vector
    indicates
  • Red piece if ngt0 and white piece if nlt0

7
Background used
8
Catch move of pieces
  • Board divided into 30 zones
  • 24 zones where the pieces move
  • 2 bars 
  • 2 trashes
  • and 2 error zones
  • When there is a mouse click ? the coordinates of
    the mouse at that moment are compared to the zones

9
Zones on the board
10
  • Computer 1 Master
  • Main game which does all the calculations then
    send data and receive data
  • Computer 2 Slave
  • Receive and send data only

11
Port 0 ID 0 Line IDs 0 1 2 3 4 5 6 7
Direction 'in/out' Config 'port' Port
1 ID 1 Line IDs 0 1 2 3 4
Direction 'in' Config 'port Port
2 ID 2 Line IDs 0 1 2 3 Direction
'in/out' Config 'port GROUND GREEN PINS (8)
12
CONS
  • Implementing the communications protocol. Very
    little documentation on this matter.
  • Assembling subroutines.
  • Graphical interface dynamics
  • Difficulty in managing four different schedules

13
PROS
  • Gain a great appreciation for the computational
    power of Matlab and Simulink
  • The individual components of the project seem to
    be working.
  • A deeper understanding of the importance of team
    work.
Write a Comment
User Comments (0)
About PowerShow.com