2048 game in Python (without installing any modules ..) the source code : from tkinter import * from tkinter import messagebox import random class Board: bg_color = { '2' : '#eee4da' , '4' : '#ede0c8' , '8' : '#edc850' , '16' : '#edc53f' , '32' : '#f67c5f' , '64' : '#f65e3b' , '128' : '#edcf72' , '256' : '#edcc61' , '512' : '#f2b179' , '1024' : '#f59563' , '2048' : '#edc22e' , } color = { '2' : '#776e65' , '4' : '#f9f6f2' , '8' : '#f9f6f2' , '16' : '#f9f6f2' , '32' : '#f9f6f2' , '64' : '#f9f6f2' , '128' : '#f9f6f2' , '256' : '#f9
Comments
Post a Comment