File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tetris-demo"
3
- version = " 0.1 .0"
3
+ version = " 0.2 .0"
4
4
authors = [
" Dan Aloni <[email protected] >" ]
5
5
edition = " 2018"
6
6
Original file line number Diff line number Diff line change 1
1
<img src =" doc/tetris.gif " align =" right " >
2
2
3
- # Tetris Example in Rust
3
+ # Tetris Example in Rust, v2
4
4
5
5
A Tetris example written in Rust using Piston.
6
6
7
7
* For demoing basic Rust coding
8
- * 498 lines of code
8
+ * 414 lines of code
9
+ * A clear Git history that iterates on added features. See: ` git log --reverse -p 855e7fddd..HEAD `
9
10
* The completed lines are flashing
10
11
* No scoring
11
12
* No 'next piece view'
@@ -20,3 +21,10 @@ git clone https://github.com/da-x/tetris-demo
20
21
cd tetris-demo
21
22
cargo run
22
23
```
24
+
25
+ ## Changes from v1
26
+
27
+ - Simplified the handling of the game state.
28
+ - Using a HashMap instead of a Vec<Vec<_ >> for board and pieces.
29
+ - Less lines, same functionality.
30
+ - A clear Git history that iterates on added features.
You can’t perform that action at this time.
0 commit comments