@@ -0,0 +1,2527 @@
+%22%22%22%0AStreet Pong%0ABuild 18 2015%0ALeanna Pancoast, Spencer Barton, Justin Frye%0A%0APong Game View%0A%22%22%22%0A%0A#=====================================================%0A# Imports%0A#=====================================================%0A%0Aimport pygame as pg%0Aimport sys%0Aimport Pong.PongGameModel as Model%0Aimport Pong.PongGameView as View%0A#=====================================================%0A# Pong%0A#=====================================================%0A%0Aclass Pong(object):%0A%0A    # TODO pausing/timeout%0A    # TODO better graphics%0A    # TODO AI when in resting mode%0A    # TODO full screen%0A    # TODO ball goes over endline%0A%0A    WIDTH, HEIGHT = 480, 480%0A    PADDLE_W = 50%0A    PADDLE_H = 6%0A    END_ZONE = 30%0A    BALL_RADIUS = 10%0A    FPS = 50%0A    MAX_SCORE = 3%0A    GAME_OVER_DELAY = 4800%0A%0A    def __init__(s):%0A        s.size = (s.WIDTH, s.HEIGHT)%0A%0A        pg.init()%0A        s.screen = pg.display.set_mode(s.size, pg.FULLSCREEN)%0A        # s.screen = pg.display.set_mode(s.size)%0A%0A        s.model = Model.PongGameModel('Player1', 'Player2', s.WIDTH, s.HEIGHT, s.END_ZONE, s.PADDLE_W,%0A                s.BALL_RADIUS)%0A        s.view = View.PongGameView(s.model, s.screen, s.WIDTH, s.HEIGHT, s.END_ZONE, s.PADDLE_W, s.PADDLE_H, %0A                s.BALL_RADIUS)%0A%0A    #==== Public Methods ========================================%0A%0A    def run(s):%0A        clock = pg.time.Clock()%0A%0A        while True:%0A            cmds = s._handleEvts()%0A%0A            score = s.model.step(cmds%5B0%5D, cmds%5B1%5D)%0A            %0A            if max(score) == s.MAX_SCORE:%0A                s.view.gameOver()%0A                s.model.reset()%0A                pg.time.wait(s.GAME_OVER_DELAY)%0A            else:%0A                s.view.show()%0A                clock.tick(s.FPS)%0A       %0A    def _handleEvts(s):%0A        move1 = s.model.MV_STAY%0A        move2 = s.model.MV_STAY%0A%0A        pressed = pg.key.get_pressed()%0A        if pressed%5Bpg.K_a%5D:%0A            move1 = s.model.MV_LEFT%0A        elif pressed%5Bpg.K_d%5D:%0A            move1 = s.model.MV_RIGHT%0A        elif pressed%5Bpg.K_j%5D:%0A            move2 = s.model.MV_LEFT%0A        elif pressed%5Bpg.K_l%5D:%0A            move2 = s.model.MV_RIGHT%0A        elif pressed%5Bpg.K_q%5D:%0A            s._quit()%0A%0A        for event in pg.event.get():%0A            if event.type == pg.QUIT:%0A                s._quit()%0A            elif event.type == pg.KEYDOWN:%0A                if event.key == pg.K_q:%0A                    s._quit()%0A%0A        return (move1, move2)%0A%0A    def _quit(s):%0A        pg.display.quit()%0A        sys.exit()%0A%0A%0Aif __name__ == '__main__':%0A    pong = Pong()%0A    pong.run()%0A

Create goodButtonPong.py