Skip to content
 
 

Repository files navigation

Code Hunt

Code Hunt is a text-based adventure game using command lines for children aged 4 to 9 who have little prior coding experience but have an interest in coding to learn basic coding knowledge through playing games and collecting knowledge cards.

Setting up in Intellij

Prerequisites: JDK 11 (use the exact version), update Intellij to the most recent version.

  1. Ensure Intellij JDK 11 is defined as an SDK, as described here -- this step is not needed if you have used JDK 11 in a previous Intellij project.
    • In the same dialog, you may have to set the Project language level field to the SDK default option.
  2. Import the project as a Gradle project, as described here.
  3. Verify the set up: After the importing is complete, locate the src/main/java/game/CodeHunt.java file, right-click it, and choose Run CodeHunt.main(). If the setup is correct, you should see something like the below:
    > Task :compileJava
    > Task :processResources NO-SOURCE
    > Task :classes
    
    > Task :CodeHunt.main()
      ____          _        _   _             _
    / ___|___   __| | ___  | | | |_   _ _ __ | |_
    | |   / _ \ / _` |/ _ \ | |_| | | | | '_ \| __|
    | |__| (_) | (_| |  __/ |  _  | |_| | | | | |_
    \____\___/ \__,_|\___| |_| |_|\__,_|_| |_|\__|
    Welcome to A text-based code game for children ages 6 and up(Code Hunt).Are you ready to play?
    Remember, you can't play the next game until you pass through the processing one. Good luck, young knight! Type "help" to see a list of available commands.
    
    newgame     Start a new game.
    continue    Continue the game stored previously.
    help        Display a list of available commands.
    about       Display information about Code Hunt.
    exit        Exit Code Hunt.
    
    Code Hunt [MAIN MENU] >
    
    Type some word and press enter to let the execution proceed.

Build automation using Gradle

  • This project uses Gradle for build automation and dependency management. It includes a basic build script as well (i.e. the build.gradle file).
  • If you are new to Gradle, refer to the Gradle Tutorial at se-education.org/guides.

Testing

I/O redirection tests

  • To run I/O redirection tests (aka Text ui tests), navigate to the text-ui-test and run the runtest(.bat/.sh) script.

JUnit tests

Checkstyle

CI using GitHub Actions

The project uses GitHub actions for CI. When you push a commit to this repo or PR against it, GitHub actions will run automatically to build and verify the code as updated by the commit/PR.

Documentation

/docs folder contains the project documentation.

Useful links:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages