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

Robot minigame #340

wants to merge 56 commits into from

Conversation

JustATin555
Copy link
Contributor

@JustATin555 JustATin555 commented Apr 1, 2025

Description

Implement the robot-minigame module for use as a Source Academy Game minigame.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

  • Standard yarn tests
  • Can render assessment workspace tab correctly
  • Functions work correctly

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@JustATin555 JustATin555 marked this pull request as ready for review June 14, 2025 10:21
@JustATin555 JustATin555 requested review from lhw-1 and RichDom2185 June 14, 2025 10:22
Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick run through as I'm outside right now, so just some preliminary comments, thanks!

@JustATin555 JustATin555 requested a review from RichDom2185 June 15, 2025 08:14
Copy link

@lhw-1 lhw-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More of an overarching question - do you think it makes sense to frame it just as a maze minigame rather than a robot minigame? The idea of having it be a robot seems more context dependent within SA game, but as a module (which is published for not just Source Academy but for Source as a whole), it might be a nice idea to frame it as a general purpose maze minigame.

(Asking because this would necessitate some variable name changes)

Copy link

@lhw-1 lhw-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments as well:

Comment on lines +114 to +116
drawBorders(ctx, width, height);
drawAreas(ctx, areas);
drawRobot(ctx, robot);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to allow some optional parameters (e.g. colors, stroke style)?

};

// The speed to move at
const ANIMATION_SPEED : number = 2;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to allow this to change as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants