In this task we were asked to create a Pokemon game. The intention is to create Pokemons that will be scattered on a directed graph that we have already built in Ex3 , and to create agents that should catch as many Pokemon as possible at a minimum track length to perform this action.
we use the previous graph implementation on Ex3. and we add some other classes to based the game.
classe | Description |
---|---|
pokemon | Represents the players |
agent | Represents the pokemon |
MyGame | return a dictionary of all the nodes in the Graph |
student code | Represents the GUI class |
client | Represents the server |
Node | represents the set of operations applicable on a node (vertex) in a (directional) weighted graph |
Edge | represents the set of operations applicable on a directional edge(src,dest,weight) in a (directional) weighted graph |
DiGraph | represents a Directional Weighted Graph with all his elements(Nodes,Edeges)and including many functions that updates his elements |
GraphAlgo | represents a Directed (positive) Weighted Graph Theory Algorithms and including many algorithms |
function | Description |
---|---|
load_agents | load list of agents from the Agant class |
load_pokemons | load list of pokemos from the Pokemon class |
theClosePokemon | looking for the closests pokemons to each agant |
theNextNode | find the next node to go to |
the user should download the project to your own computer. In the terminal command line you should write: java -jar Ex4_Server_v0.0.jar 0 ( “0” represents the case between [0-15])
Computer operating system is macOS, 256 SSD Apple M1 Chip with 8‑Core CPU and 7‑Core GPU and 16‑core Neural Engine 8GB unified memory, 16 GB
Tal tosiano-208846600
Moran shalev-316220938