pythonでテトリスを作ってみました。 キーボード操作は以下の通りです。 ゲームオーバーのタイミングで消した行数とゲーム時間を表示します。 必要なinstallです。 pip install pygame ソースです。 import pygame import random import time import tkinter as tk from tkinter import ...
colors={"AliceBlue":"#F0F8FF","Aqua":"#00FFFF","FloralWhite":"#FFFAF0","LightBlue":"#ADD8E6","Ivory":"#FFFFF0","Indigo":"#4B0082","LightSkyBlue":"#87CEFA","Maroon ...
There is a card game where you connect water pipes. First, create a main.py file in any folder and code the following to draw the screen. (Execution Result 1) import pygame # 先にターミナルでpip install ...