How ollie2405/ai_assignment works
Hinger is a two-player strategy game on a 5×5 board, with an optional webcam-based ASL input path and a separate landmark-classification model workflow. The main play loop obtains moves, applies board rules, scores moves, and determines the winner; the AI selects moves from generated states. The ASL branch recognizes a hand sign and supplies a validated letter to the game. The graph also preserves the documented image-to-model preparation stages. Some dataset-stage handoffs are inferred from file roles rather than shown calls, so those links are dashed and uncited.
Main entry points: a3_advGame.py ASL game mode · a3_game.py Game loop · training_and_optimisation.py Model training · feature_engineering.py Feature engineering
Components 18
Game runtime
- Game loop
a3_game.py - Board state
a1_state.py - AI agent
a2_agent.py
ASL input
- ASL game mode
a3_advGame.py - ASL player
a3_advGame.py - Sign recognizer
a3_advGame.py
Model preparation
- ASL photos
ASL_photos/dataset - Image preparation
ASL_photos/prepare_images.py - Processed images
data/ASL_PROCESSED - Landmark extraction
landmark_extraction.py - Landmark tables
data/landmarks - Data cleaning
supervised_learning_model/clean.py - Landmark normalization
supervised_learning_model/preprocess.py - Feature engineering
supervised_learning_model/feature_engineering.py - Model training
supervised_learning_model/training_and_optimisation.py - kNN classifier
supervised_learning_model/knn.py - Trained models
models
Other components
- Human players
Connections 20
- Human players → Game loop: provides moves
README.md - Game loop → Board state: applies moves
a3_game.py - Game loop → AI agent: requests AI move
a3_game.py - ASL game mode → ASL player: uses player
a3_advGame.py - ASL player → Sign recognizer: requests prediction
a3_advGame.py - ASL game mode → Board state: validates move
a3_advGame.py - ASL game mode → AI agent: uses opponent
a3_advGame.py - ASL game mode → Human players: accepts ASL input
- ASL photos → Image preparation: reads photos
ASL_photos/prepare_images.py - Image preparation → Processed images: prepares images
- Processed images → Landmark extraction: extracts landmarks
- Landmark extraction → Landmark tables: writes landmarks
- Landmark tables → Data cleaning: cleans table
- Data cleaning → Landmark normalization: normalizes data
- Landmark normalization → Feature engineering: builds features
supervised_learning_model/feature_engineering.py - Feature engineering → Model training: supplies features
- Model training → kNN classifier: uses classifier
supervised_learning_model/training_and_optimisation.py - Model training → Trained models: saves models
- Sign recognizer → Trained models: loads model
- Sign recognizer → Feature engineering: prepares inputs
a3_advGame.py