From 84e75e0b87d9fa5386a388a488f357e0a309c192 Mon Sep 17 00:00:00 2001 From: Jesse Li Date: Wed, 9 May 2018 13:00:45 -0400 Subject: [PATCH] Add gliders template --- gitfiti.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gitfiti.py b/gitfiti.py index 248a6ab31a..eeb42a39cb 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -134,6 +134,15 @@ [0,0,2,2,2,2,0,3,3,3,0,0,3,3,3,0,3,3,3,0,3,0,0,3,0], ] +GLIDERS = [ + [0,0,0,4,0,4,0,0,0,0,4,0,0,0], + [0,4,0,4,0,0,4,4,0,0,0,4,0,0], + [0,0,4,4,0,4,4,0,0,4,4,4,0,0], + [0,0,0,0,0,0,0,0,0,0,0,0,0,0], + [0,4,0,4,0,0,0,4,0,0,0,0,0,0], + [0,0,4,4,0,4,0,4,0,0,0,0,0,0], + [0,0,4,0,0,0,4,4,0,0,0,0,0,0], +] ASCII_TO_NUMBER = { '_': 0, @@ -185,6 +194,7 @@ def is_empty_line(line): 'hireme': HIREME, 'oneup_str': ONEUP_STR, 'beer': BEER, + 'gliders': GLIDERS, }