Created
July 29, 2020 08:21
-
-
Save CodeDrome/28306674383ea645bbf3c6a391173428 to your computer and use it in GitHub Desktop.
galton_board_main.py
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
import galtonboard | |
import galtonboardview | |
import sys | |
import os | |
def main(): | |
""" | |
Creates and runs a GaltonBoard index object | |
""" | |
gb = galtonboard.GaltonBoard(7, | |
40, | |
galtonboardview.on_init, | |
galtonboardview.on_ball_moved, | |
galtonboardview.on_total_changed) | |
gb.initialize() | |
os.system('setterm -cursor off') | |
gb.start() | |
os.system('setterm -cursor on') | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment