import curses import game a = game.robomake() def inst(): win = a.addscreen() a.definecolors() win.addstr(2, 58, "Robot Bomb Defuser", curses.color_pair(3)) win.addstr( 6, 28, "This game has one red colored bomb which is to be diffused by a blue colored robot.", curses.color_pair(2)) win.addstr( 7, 31, "The robot has to collect 'd' diffuse codes before diffusing the bomb.", curses.color_pair(2)) win.addstr( 8, 30, "The number of diffuse codes collected are displayed on the top left corner.", curses.color_pair(2)) win.addstr(10, 36, "The player loses in the following situations:", curses.color_pair(2)) win.addstr(11, 36, "1) Reaches the bomb before collecting all diffuse codes", curses.color_pair(2)) win.addstr(12, 36, "2) Hits the wall", curses.color_pair(2)) win.addstr(13, 36, "3) Hits the mine", curses.color_pair(2)) win.addstr(14, 36, "4) Hits the enemy robot or the bullet thrown by enemy robot", curses.color_pair(2))
import game, instructions status=instructions.inst() if(status!=-1): robot=game.robomake() robot.run()
import game, instructions status = instructions.inst() if (status != -1): robot = game.robomake() robot.run()
import game a=game.robomake() win=a.addscreen() win.getch()