Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added pygame init, updated card class to track selected

  • Loading branch information...
commit fd9dd6d0f3e8b26aa1c0ecb7f6e69e05b6e8d076 1 parent e46d57e
@cfletcher1856 authored
Showing with 6 additions and 5 deletions.
  1. +1 −0  card.py
  2. +1 −1  next_ice_id.txt
  3. +4 −4 solitaire.py
View
1  card.py
@@ -15,6 +15,7 @@ def __init__(self, rank, suit):
self.suit = suit
self.is_turned = False
self.img = '{0}{1}.png'.format(suit, rank)
+ self.selected = False
@property
def color(self):
View
2  next_ice_id.txt
@@ -1 +1 @@
-1926
+2134
View
8 solitaire.py
@@ -1,7 +1,6 @@
import os
import sys
-from random import shuffle, randint
-from pprint import pprint
+from random import shuffle
import pygame
from pygame.locals import *
@@ -9,6 +8,9 @@
from refs import refs
from card import Card
+# Init game
+pygame.init()
+
# Booleans to track state
refs.status = 'deal'
@@ -87,8 +89,6 @@ def update_cards():
tabelauoffset -= 80
- print len(refs.deck)
-
def mainGame(framerate=60):
while 1:
Please sign in to comment.
Something went wrong with that request. Please try again.