Skip to content

Commit 68cf5d1

Browse files
authored
Add files via upload
1 parent 98753ea commit 68cf5d1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

main.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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()

0 commit comments

Comments
 (0)