Permalink
Browse files

Added pygame init, updated card class to track selected

  • Loading branch information...
1 parent e46d57e commit fd9dd6d0f3e8b26aa1c0ecb7f6e69e05b6e8d076 @cfletcher1856 committed Apr 13, 2012
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
@@ -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
@@ -1 +1 @@
-1926
+2134
View
@@ -1,14 +1,16 @@
import os
import sys
-from random import shuffle, randint
-from pprint import pprint
+from random import shuffle
import pygame
from pygame.locals import *
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:

0 comments on commit fd9dd6d

Please sign in to comment.