watersim: renamed class

This commit is contained in:
madmaurice 2016-02-16 18:04:04 +01:00
parent 2a84801ba8
commit 027db7e247

View file

@ -2,12 +2,12 @@
from game import *
class Sim(Game):
class WaterSim(Game):
def __init__(self,N):
self.N = N
self.init_data(N//2)
self.mousepos = (0,0)
super(Sim, self).__init__( 1000, 600, 120)
super(WaterSim, self).__init__( 1000, 600, 120)
def init_data(self, middle):
self.C = [50] * self.N
@ -60,4 +60,4 @@ class Sim(Game):
prev_point = new_point
if __name__ == '__main__':
Sim(100).on_execute()
WaterSim(100).on_execute()