Demo entry 6656309

game

   

Submitted by anonymous on Oct 31, 2017 at 00:57
Language: Python. Code size: 344 Bytes.

class Game(Games):
    def __init__(self, players):
        self.players = players
        self.status = 'preparing'

    def start(self):
        if self.status == 'preparing':
            self.status = 'running'
        if self.status == 'running':
            self.run()

    def run(self):
        while True:
            pass 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).