Download multi-agent stratego - Knowledge Based Systems Group

Transcript
Multi-Agent-Stratego
AgentComparator
Agent
*
Tile
*
*
CaptainTile
MinorTile
FlagTile
BombTile
MarshalTile
SergeantTi le SpyTile MajorTile GeneralTile
ScoutTile
ColonelTile
LieutenantTile
1..*
Grid
Player
1
1..*
1
Stratego
Board
1
StartingSet upCPU
SplashScreen
MenuKeyListener
HumanPlayer
ComputerPlayer
1
1
ButtonListener
SplashScreenImage
Figure 4.7: Stratego Class diagram.
See appendix for a bigger size of the class diagram.
As we can see that Tile is a super class. And the other subclasses are actually the
Stratego army pieces. The agent is a Tile with the extra attribute, which are the x
and y location, the agent best score and the move direction. See figure 4.8 for
the Tile and the Agent classes.
26