Unofficial tetris for Numwork (needs others modules)
from math import * from kandinsky import * cursor=[ [1,1,1,1,1,0,0,0,0], [0,1,1,1,1,1,0,0,0], [0,0,1,1,1,1,1,0,0], [0,0,0,1,1,1,1,1,0], [0,0,0,0,1,1,1,1,1], [0,0,0,1,0,0,0,1,0], [0,0,1,0,0,0,1,0,0], [0,1,0,0,0,1,0,0,0], [1,1,1,1,1,0,0,0,0]] logo=[ "01110000000010000000000000001000000000333330444400555006666001110111", "12221000000010000000000000001000000000223220422240252062222000100121", "10002001111010000111001000101000011110003000400040050060000000100101", "10000012221010001222101000101000122210003000444420050006660000000000", "10000010001010001000201000101000100010003000424200050002226000000000", "10001010011010001000101000101000100110003000402400050000006000000000", "21112021121021102111202111102110211210003000400240555066662000000000", "02220002202002200222000222200220022020002000200020222022220000000000"] colorscheme=[(20,20,20),(255,255,255),(125,125,125),(255,0,255),(255,150,0),(0,255,255),(0,255,0)] blocks=[ ["plates" ,"7777777676666665766666657666666576666665766666657666666565555555"], ["stone brick","6666666265555552655555522222222266626666655265556552655522222222"], ["steve head" ,"2222222222222222255555525555555557455475555445555535535555333355"], ["zig_zag" ,"6667557666775566457754445577444455766667556666775444457744445577"]] def print_logo(): for x in range(272): for y in range(32): color_id=logo[(y//4)][x//4] set_pixel(x+24,y+150,colorscheme[int(color_id)])