-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
35 lines (30 loc) · 976 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""Main File"""
import game
import sys
VERSION = ".1"
AUTHORS = ["Wade Marshall", "Talor Tolbert"]
def init():
"""Startup Function, everything should start here"""
print("Black jack, version v%s. Created by %s") % (VERSION, getAuthors())
print("Githug Repository: " +
"https://github.com/wmmnola/PLTW-ApCompSCI-Collab-Project")
print("This project is Licensed with the GPL 3.0 License.")
print("Any attempt to redistribute this software as non-free software is" +
" illegal.")
game.game_start()
def getAuthors():
"""Returns the list AUTHORS as a string"""
authors = ""
for x in AUTHORS:
if x is AUTHORS[len(AUTHORS) - 1]:
authors += "and "
authors += "%s" % x
if x is AUTHORS[len(AUTHORS) - 1]:
authors += " "
else:
authors += ", "
return authors
def panic():
print("You broke my game. How did you break my game???")
sys.exit()
init()