Git Product home page Git Product logo

advprog_l4-simpleai's Introduction

Lesson 4 - SimpleAI:

This is another lesson of the Advanced Programming course with the two following objectives:

  • i) Understand about a simple AI source code structure
  • ii) Learn automated testing with Github Actions

You are required to implement several functions of HangMan game. They could be done via the instructions as follows:

  • Step 1: Fork this repo to your own account
  • Step 2: Clone the forked repo to your local via the command: git clone https://github.com/[YOUR_USERNAME]/AdvProg_L4-SimpleAI.git
  • Step 3: Modify the following functions of the 'simpleai.cpp' file to complete the requirement.:
    • int generateRandomNumber(const int min, const int max);
    • bool isCharInWord(const char ch, const string& word);
    • vector filterWordsByLen(int wordLen, const vector& vocabulary);
    • char findBestChar(const vector& candidateWords, const set& selectedChars);
    • bool isCorrectChar(char ch, const string& mask);
    • bool isWholeWord(const string& mask);
    • vector filterWordsByMask(const vector& words, const string& mask, char ch);
  • Step 4: Commit & push the modified file using the command: git commit -m "[Insert_your_own_message]" & git push origin main
  • Step 5: Create a pull request:
    • In the tab "Pull requests", click on "New pull request"
    • Set the pull request's title with the format as: [Your_student_ID]_[Your_full_name]
    • Click on "Create pull request" to submit
  • Step 6: Check the automated testing workflow on your modified code using Github Actions.

Hope you enjoy the lesson.

advprog_l4-simpleai's People

Contributors

csuet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.