diff --git a/cards/1 b/cards/1 index 8f34950..0dc5a53 100644 --- a/cards/1 +++ b/cards/1 @@ -1,6 +1,6 @@ -0 1 -2 1 +2 +0 0 -10 +11 diff --git a/cards/10 b/cards/10 deleted file mode 100644 index 44d6e0e..0000000 --- a/cards/10 +++ /dev/null @@ -1,6 +0,0 @@ -0 -0 -0 -1 -0 -11 diff --git a/cards/19 b/cards/100 similarity index 100% rename from cards/19 rename to cards/100 diff --git a/cards/11 b/cards/11 index d28caa3..4a84093 100644 --- a/cards/11 +++ b/cards/11 @@ -1,6 +1,6 @@ +1 0 +12 0 0 -1 0 -12 diff --git a/cards/12 b/cards/12 index 75033b8..a2cc27c 100644 --- a/cards/12 +++ b/cards/12 @@ -1,6 +1,6 @@ +1 0 +13 0 0 -1 0 -13 diff --git a/cards/13 b/cards/13 index eb14045..158bc88 100644 --- a/cards/13 +++ b/cards/13 @@ -1,6 +1,6 @@ 0 0 +14 +0 0 -1 0 -14 diff --git a/cards/14 b/cards/14 index 55b8718..46a6fec 100644 --- a/cards/14 +++ b/cards/14 @@ -1,6 +1,6 @@ 0 0 +15 +0 0 -1 0 -15 diff --git a/cards/15 b/cards/15 index 0a64db2..ff29839 100644 --- a/cards/15 +++ b/cards/15 @@ -1,6 +1,6 @@ 0 0 +16 +0 0 -1 0 -16 diff --git a/cards/16 b/cards/16 index 66dd08e..af0485d 100644 --- a/cards/16 +++ b/cards/16 @@ -1,6 +1,6 @@ 0 0 +17 +0 0 -1 0 -17 diff --git a/cards/17 b/cards/17 index 5e6f350..48be17e 100644 --- a/cards/17 +++ b/cards/17 @@ -1,6 +1,6 @@ 0 0 +18 +0 0 -1 0 -18 diff --git a/cards/18 b/cards/18 index a9e54c2..cca2b14 100644 --- a/cards/18 +++ b/cards/18 @@ -1,6 +1,6 @@ 0 +1 +20 0 0 -1 0 -19 diff --git a/cards/2 b/cards/2 index 1facc2c..53fab1b 100644 --- a/cards/2 +++ b/cards/2 @@ -1,6 +1,6 @@ -0 1 -3 1 +3 +0 0 1 diff --git a/cards/20 b/cards/20 new file mode 100644 index 0000000..c77a1bb --- /dev/null +++ b/cards/20 @@ -0,0 +1,6 @@ +0 +1 +21 +1 +1 +21 diff --git a/cards/21 b/cards/21 new file mode 100644 index 0000000..81a3b9a --- /dev/null +++ b/cards/21 @@ -0,0 +1,6 @@ +0 +1 +22 +1 +1 +22 diff --git a/cards/22 b/cards/22 new file mode 100644 index 0000000..8fb4d77 --- /dev/null +++ b/cards/22 @@ -0,0 +1,6 @@ +0 +1 +23 +1 +1 +23 diff --git a/cards/23 b/cards/23 new file mode 100644 index 0000000..2e17958 --- /dev/null +++ b/cards/23 @@ -0,0 +1,6 @@ +0 +1 +24 +1 +1 +24 diff --git a/cards/24 b/cards/24 new file mode 100644 index 0000000..71c2c10 --- /dev/null +++ b/cards/24 @@ -0,0 +1,6 @@ +0 +1 +25 +1 +1 +25 diff --git a/cards/25 b/cards/25 new file mode 100644 index 0000000..78b0799 --- /dev/null +++ b/cards/25 @@ -0,0 +1,6 @@ +0 +1 +26 +1 +1 +26 diff --git a/cards/26 b/cards/26 new file mode 100644 index 0000000..fe95419 --- /dev/null +++ b/cards/26 @@ -0,0 +1,6 @@ +0 +1 +100 +1 +1 +100 diff --git a/cards/27 b/cards/27 new file mode 100644 index 0000000..fe95419 --- /dev/null +++ b/cards/27 @@ -0,0 +1,6 @@ +0 +1 +100 +1 +1 +100 diff --git a/cards/3 b/cards/3 index 66900f0..00020fd 100644 --- a/cards/3 +++ b/cards/3 @@ -1,6 +1,6 @@ -0 1 -4 1 +4 +0 0 2 diff --git a/cards/4 b/cards/4 index 2318f71..b2fb2f9 100644 --- a/cards/4 +++ b/cards/4 @@ -1,4 +1,4 @@ -0 +1 1 5 1 diff --git a/cards/5 b/cards/5 index c6d21e5..65d78ed 100644 --- a/cards/5 +++ b/cards/5 @@ -1,6 +1,6 @@ -0 1 -6 1 +6 +0 0 4 diff --git a/cards/6 b/cards/6 index db40e85..197878d 100644 --- a/cards/6 +++ b/cards/6 @@ -1,6 +1,6 @@ -0 1 -7 1 +7 +0 0 5 diff --git a/cards/7 b/cards/7 index 5ffccd8..3317202 100644 --- a/cards/7 +++ b/cards/7 @@ -1,6 +1,6 @@ -0 1 -8 1 +8 +0 0 6 diff --git a/cards/8 b/cards/8 index 4f7ac79..6472731 100644 --- a/cards/8 +++ b/cards/8 @@ -1,6 +1,6 @@ -0 1 -9 1 +9 +0 0 7 diff --git a/cards/9 b/cards/9 index c1ab0d8..165910f 100644 --- a/cards/9 +++ b/cards/9 @@ -1,5 +1,5 @@ -1 -1 +0 +0 8 0 0 diff --git a/machine.py b/machine.py index a499bbf..49525a4 100755 --- a/machine.py +++ b/machine.py @@ -69,27 +69,28 @@ class Machine: def evolve(self): ret = True if self.r.read(): + self.r.write(self.card.one_write) + print(self.r) if self.card.one_move: self.r.left() else: self.r.right() - self.r.write(self.card.one_write) if not self.card.one_next: ret = False else: self.card = Card(self.card.one_next) else: + self.r.write(self.card.zero_write) + print(self.r) if self.card.zero_move: self.r.left() else: self.r.right() - self.r.write(self.card.zero_write) if not self.card.zero_next: ret = False else: self.card = Card(self.card.zero_next) - print(self.r) return ret