Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolasalmerge/chaslesgame
Chasles Game to learn vector rules in a fun way
https://github.com/nicolasalmerge/chaslesgame
Last synced: 6 days ago
JSON representation
Chasles Game to learn vector rules in a fun way
- Host: GitHub
- URL: https://github.com/nicolasalmerge/chaslesgame
- Owner: NicolasAlmerge
- License: mit
- Created: 2022-05-31T08:55:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-14T06:13:53.000Z (7 months ago)
- Last Synced: 2024-11-08T14:59:11.700Z (about 2 months ago)
- Language: Mathematica
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chasles Game
A fun and very unique game to learn about vector operations visually.
After compilation, the game starts as a 5×5 grid, consisting of 20 blocks. Each block is like a vector, with two color endpoints and a coefficient.
The black boxes represent the empty cells, or the zero vector.Using the given buttons, you can move the blocks around to combine them!
In the example below, moving the piece on the far left of the fourth line to the right combines the two blocks together using the vector addition rule.
Mathematically, this is represented as: 2AB + 2BC = 2AC.Another example of combination is shown below with the two blocks at the bottom of the middle column, still using the vector addition rule.
The mathematical representation of this operation is: 1CD + 2CD = 3CD.If no combination is possible, blocks are simply swaped without changes. Below is an example of swapping the two adjacent top blocks with coefficient two.
The goal of the game is to combine as much as possible to get one block at the end. Thanks to the way the blocks are built, this is always possible!
Click the **Replay** button to restart the current game, or **New Game** to start a new one.
Have fun!
# Requirements
- Wolfram Mathematica, version 12.3 or higher