Skip to content

Commit

Permalink
Fix pylint issues in examples.game_of_life (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5kin committed Jun 27, 2018
1 parent 8ee3543 commit 2bbdb86
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/game_of_life.py
Expand Up @@ -81,10 +81,10 @@ def color(self):
pure white.
"""
r = self.main.state * 255
g = self.main.state * 255
b = self.main.state * 255
return (r, g, b)
red = self.main.state * 255
green = self.main.state * 255
blue = self.main.state * 255
return (red, green, blue)


class GameOfLifeStatic(GameOfLife):
Expand Down Expand Up @@ -152,10 +152,10 @@ class access, not via ``super``.
@color_effects.MovingAverage
def color(self):
"""Calculate color as usual."""
r = self.main.state * self.main.red
g = self.main.state * self.main.green
b = self.main.state * self.main.blue
return (r, g, b)
red = self.main.state * self.main.red
green = self.main.state * self.main.green
blue = self.main.state * self.main.blue
return (red, green, blue)


class GameOfLife6D(GameOfLife):
Expand Down Expand Up @@ -270,8 +270,8 @@ class GOLExperiment6D(GOLExperiment2):
def main():
"""Run model/experiment interactively."""
import moire
ca = GameOfLifeColor(GOLExperimentColor)
gui = moire.GUI(runnable=ca)
model = GameOfLifeColor(GOLExperimentColor)
gui = moire.GUI(runnable=model)
gui.run()


Expand Down

0 comments on commit 2bbdb86

Please sign in to comment.