Files
CHESS/README.md
T
2025-09-07 15:01:27 +02:00

93 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CHESS
Projet universitaire — implémentation dun jeu d’échecs en Java (IUT de Fontainebleau).
## Dépôts
- **Forge de lIUT** : `https://forge-fac.example.com/mon-orga/CHESS.git`
- **GitHub** : `https://github.com/Gaston667/CHESS.git`
## Commandes Git
```bash
# 1. Cloner le dépôt depuis la fac
git clone https://forge-fac.example.com/mon-orga/CHESS.git
cd CHESS
# 2. Ajouter GitHub comme remote supplémentaire
git remote add github https://github.com/Gaston667/CHESS.git
# 3. Vérifier les remotes
git remote -v
# 4. Récupérer les dernières modifications depuis la fac
git fetch origin
git pull origin main
# 5. Ajouter et committer des changements
git add .
git commit -m "Message du commit"
# 6. Pousser les changements vers la fac ET GitHub
git push origin main
git push github main
# 7. Pousser toutes les branches et tags (première synchro)
git push origin --all
git push github --all
git push origin --tags
git push github --tags
# 8. Créer et pousser une nouvelle branche
git checkout -b nouvelle-branche
git push origin nouvelle-branche
git push github nouvelle-branche
# 9. Resynchroniser les deux dépôts (mise à jour complète)
git fetch --all --prune
git push origin --all
git push github --all
git push origin --tags
git push github --tags
src/
├── modele/ Couche Modèle (logique du jeu)
│ ├── Partie.java
│ ├── Plateau.java
│ ├── Case.java
│ ├── Coup.java
│ ├── Couleur.java enum
│ ├── ModeDeJeu.java enum
│ ├── piece/
│ │ ├── Piece.java abstraite
│ │ ├── Roi.java
│ │ ├── Reine.java
│ │ ├── Tour.java
│ │ ├── Cavalier.java
│ │ ├── Fou.java
│ │ └── Pion.java
│ ├── joueur/
│ │ ├── Joueur.java abstraite
│ │ ├── JoueurHumain.java
│ │ ├── JoueurIA.java
│ │ └── IA.java
├── vue/ Couche Vue (console ou graphique)
│ ├── Vue.java interface
│ ├── VueConsole.java
│ ├── VueGraphique.java
├── controleur/ Couche Contrôleur
│ ├── ControleurPartie.java
│ └── ControleurReseau.java
├── reseau/ Réseau (mode en ligne)
│ ├── MessageJeu.java
│ ├── TypeMessage.java enum
│ ├── Serveur.java
│ └── Client.java
└── Main.java Point d'entrée du jeu