Also take a look at the directional coloration map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random | |
import os | |
import sys | |
""" | |
Mentalist Poker http://www.benefactum.ca/?p=274 | |
1. Each player starts with 20 chips or counters of some sort, a screen to hide | |
them, and a “betting line,” perhaps a piece of string or a pencil, placed | |
horizontally in front of him (but behind the screen). Chips placed in front of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Usbourne Computer Space Games was a type-in computer games book | |
# from the 1980s. This is a version of "Moonlander" game. | |
# Original BASIC by Daniel Isaaman and Jenny Tyler | |
from time import sleep | |
print(chr(27) + "[2J") # Clear screen | |
print("Moonlander") | |
#Set the starting values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#Usbourne Computer Battlegames was a type-in computer games book | |
#from the 1980s. | |
#This is a version of "Battle at Traitors Castle" game. | |
#Original BASIC by Daniel Isaaman and Jenny Tyler | |
import curses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import tkinter as tk | |
import numpy as np | |
from numpy import sin, cos, sqrt | |
G = 6.67384e-11 # m^3 kg-1 s-2 | |
DEG = np.pi / 180 | |
AU = 1.49597871e11 # for converting to meters | |
METRE = 1 / 1.49597871e11 # for converting to AU |