Skip to content

Robot minigame #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1d7372e
new module for source academy minigame
yk-tuturu Feb 27, 2025
04766d2
formatting code
yk-tuturu Feb 27, 2025
a53f007
forgot to pull
yk-tuturu Feb 27, 2025
1eabde2
raycasting implementedgit status
yk-tuturu Mar 1, 2025
4decbb8
fixing some error in eslint
yk-tuturu Mar 1, 2025
906716a
fixing some error in eslint 2
yk-tuturu Mar 1, 2025
0d4b236
formatted code
yk-tuturu Mar 1, 2025
fd5321d
raycast fix
yk-tuturu Mar 18, 2025
a7630f3
commented and cleaned up code
yk-tuturu Mar 19, 2025
d149702
commenting code
yk-tuturu Mar 19, 2025
aef74d5
updated to command system, includes move, rotate and sensor
yk-tuturu Mar 19, 2025
ae6e98c
formatting fix
yk-tuturu Mar 19, 2025
b532ff4
Add skeletons for required functions
JustATin555 Mar 20, 2025
d799e80
Remove semicolons :(
JustATin555 Mar 20, 2025
0f0ff3f
Update robot-minigame index exports
JustATin555 Mar 20, 2025
e84a02a
commands -> actionLog; rewrote Canvas as React FC
JustATin555 Mar 20, 2025
7000840
Fix animation to use refs instead
JustATin555 Mar 21, 2025
08b896c
Implemented pause/resume/reset for display
JustATin555 Mar 21, 2025
544ded9
Implement all functions in primary function set
JustATin555 Mar 24, 2025
20bd34f
Implement entered_colors(); Fix rotation render; Change create_area()…
JustATin555 Mar 24, 2025
4ae4a4c
Make get_flags() private; Update internal documentation
JustATin555 Mar 24, 2025
43e2f67
Fix entered_colors()
JustATin555 Mar 26, 2025
8c06138
fixed areaEquals, added debug functionality
yk-tuturu Mar 26, 2025
8d8cb20
fixed get_distance not accounting for radius of robot
yk-tuturu Mar 26, 2025
8cac2e8
removed unnecessary imports
yk-tuturu Mar 26, 2025
2f9cb4f
tweaked get_distance and move_forward_to_wall
yk-tuturu Mar 26, 2025
5a5c541
Allow multiple maps (incomplete)
JustATin555 Mar 27, 2025
c63f209
Remove multiple map functionality
JustATin555 Mar 27, 2025
8e2ed88
Lint and tsc
JustATin555 Mar 27, 2025
631fd23
Predeclare tests in prepend, run_tests() in postpend
JustATin555 Mar 31, 2025
3810280
Separate type declarations, run_tests(areaLog, tests) for simulation,…
JustATin555 Mar 31, 2025
5f4639e
Merge branch 'master' into robot-minigame
JustATin555 Apr 1, 2025
702a842
Add sense_obstacle()
JustATin555 Apr 2, 2025
6651e0d
Merge branch 'robot-minigame' of github.com:source-academy/modules in…
JustATin555 Apr 2, 2025
606e823
Add @esbuild/linux-64 dependency
JustATin555 Apr 2, 2025
8568f8e
Remove @esbuild/linux-x64 dev dependency
JustATin555 Apr 2, 2025
6a4154c
Remove scripts/bin.js and add /dist as in #314
JustATin555 Apr 2, 2025
bc0c746
Conform to #121 yarn package manager version
JustATin555 Apr 2, 2025
b7e508e
Merge branch 'master' into robot-minigame
JustATin555 Apr 3, 2025
9d55b9b
Write begin as an explicit case for action animation switch
JustATin555 Apr 3, 2025
827df68
Remove unused raycast_multi()
JustATin555 Apr 3, 2025
a5acb35
No longer throw error on collision with obstacle
JustATin555 Apr 3, 2025
424f456
Move stateless raycast and area helpers into separate file
JustATin555 Apr 3, 2025
202181b
Tests should fail if the robot has collided with an obstacle
JustATin555 Apr 3, 2025
7598f15
Merge branch 'master' into robot-minigame
RichDom2185 Apr 3, 2025
8b95797
Merge branch 'master' into robot-minigame
RichDom2185 Apr 6, 2025
6fe3ea3
Merge branch 'master' into robot-minigame
JustATin555 Apr 7, 2025
d909ce9
Merge branch 'robot-minigame' of github.com:source-academy/modules in…
JustATin555 Apr 9, 2025
0153c83
Merge branch 'master' into robot-minigame
JustATin555 Apr 16, 2025
cbf04ac
Merge branch 'robot-minigame' of github.com:source-academy/modules in…
JustATin555 Apr 16, 2025
880ebdf
Fix serve http-server cors; Flip sense_obstacle()
JustATin555 Apr 16, 2025
dfb74e6
Merge branch 'master' into robot-minigame
martin-henz Jun 11, 2025
fb58a9f
Merge branch 'master' into robot-minigame
martin-henz Jun 12, 2025
b7128da
Remove temporary debug log
JustATin555 Jun 14, 2025
1e9584e
Merge branch 'master' into robot-minigame
JustATin555 Jun 14, 2025
df66413
Touchups as per RichDom's review
JustATin555 Jun 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ export default tseslint.config(
'jest/valid-describe-callback': 'off'
}
}
);
);
5 changes: 5 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"Nbody"
]
},
"robot_minigame": {
"tabs": [
"RobotMaze"
]
},
"unittest": {
"tabs": [
"Unittest"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"prepare": "husky",
"postinstall": "patch-package && yarn scripts:build",
"scripts": "node --max-old-space-size=4096 scripts/dist/bin.js",
"serve": "http-server --cors=* -c-1 -p 8022 ./build",
"serve": "http-server --cors -c-1 -p 8022 ./build",
"template": "yarn scripts template",
"test": "yarn scripts test",
"test:all": "yarn test && yarn scripts:test",
Expand Down
Loading
Loading