ผลต่างระหว่างรุ่นของ "Prg2/monkey game"
ไปยังการนำทาง
ไปยังการค้นหา
Jittat (คุย | มีส่วนร่วม) (→Part 2) |
Jittat (คุย | มีส่วนร่วม) (→Part 2) |
||
แถว 26: | แถว 26: | ||
* Git commands: log, checkout | * Git commands: log, checkout | ||
* Git concept: branch, remote, edit history, merge conficts, .gitignore | * Git concept: branch, remote, edit history, merge conficts, .gitignore | ||
+ | * Working the same remote git repository with other developers | ||
* Small code cleaning | * Small code cleaning | ||
รุ่นแก้ไขเมื่อ 01:37, 9 มีนาคม 2564
- This is part of Programming 2 2563
Basic information
- Repository: https://github.com/jittat/monkeys-demo
- Inspiration: QBASIC GORILLAS - See [1]
Part 1
See the clip here: PRG2 - Monkeys Part 1
In this part we will learn
- Basic refactoring of code
- Basic project management tool in github, e.g., issue tracker and project board
- Git commands: init, add, commit, pull, push
Part 2
See the clip here: PRG2 - Monkeys Part 2
In this part we will learn:
- Git commands: log, checkout
- Git concept: branch, remote, edit history, merge conficts, .gitignore
- Working the same remote git repository with other developers
- Small code cleaning
Part 3
Final code
We notice that there are many duplicate lines in Sprite and Text (in gamelib.py). Therefore, we extract a new base class, called GameCanvasElement from both classes. We also have to update all attributes from sprites to elements so as to be more inclusive about things inside the list.
- See the diff here: [2]
This is the edit history for the game.