Skip to content

MyGameGUI

yonatan555 edited this page Jan 19, 2020 · 5 revisions

The Class implemts auto_manual:

This class is come together the data frm the server by the Play object that updating from server, and the graph printed to the screen .

fildes: play object - in this class we are getting the whole information from the server , fruits graph and robots, and locate them at right place for maximal result min_x and y, max_x and y values for the graphics.

functions : initgui- init the(paint it) graph and open the window , and offer to the user if to play manual or auto using. show score- will show the moves and score of the game durring the game is playing. show time- will show the rest of time that remaining. paint - paint the whole graph by data that send to it by play filled

standats

the grpah

Clone this wiki locally