Skip to content
Snippets Groups Projects
Commit 4d81bc9a authored by Lama Amro's avatar Lama Amro :face_palm_tone3:
Browse files

Update Lama.md

parent e0fe6e1b
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,8 @@ An example of a good code is the code responsible of the movement of the object,
![good_code_1](/uploads/d34a2cf68d60cd7e607748b9d3b4a5fd/good_code_1.png)
# Bad code
Some of the codes i wrote were functioning but not in the way i wanted. Example of a bad code i wrote is the Markmine code, which marks a tile that has a mine under to avoid explosion. The marking opject's position depends on the character's position, which is hard to get it exactly in the centre of the tile, so the marking object does not alway appear in the perfect position to cover the tile.
![badcode1](/uploads/fa9150a169598d99a63889b1d3d1de90/badcode1.png)
Another bad code is the code i wrote for the winning criteria, as i wrote a code that only counts the number of the marking object without checking if the marked tile does have a mine or not.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment