File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ Python-Blackjack - Version française 1.0
3+
4+ Copyright © Gaëtan Sencie 2024
5+ Tous droits réservés.
6+ """
7+
8+ import os
9+ import sys
10+ import pygame
11+ import random
12+ import json # Pour la gestion du Hall of Fame
13+
14+ # Initialiser Pygame
15+ pygame .init ()
16+
17+ # Dimensions de l'écran
18+ SCREEN_WIDTH = 1100
19+ SCREEN_HEIGHT = 800
20+
21+ # Couleurs
22+ WHITE = (255 , 255 , 255 )
23+ BLACK = (0 , 0 , 0 )
24+ GREEN = (0 , 255 , 0 )
25+ RED = (255 , 0 , 0 )
26+ GOLD = (255 , 215 , 0 )
27+ BLUE = (0 , 0 , 255 )
28+
29+ # Créer l'écran (initialisé après la splash screen pour la fenêtre principale)
30+ screen = None # Sera initialisé après la splash screen
31+ pygame .display .set_caption ("Blackjack" )
32+
33+
34+
35+ CODE SOUS LICENCE
36+
37+
38+
39+
40+ if __name__ == '__main__' :
41+ main ()
You can’t perform that action at this time.
0 commit comments