Skip to content

Using Java Script's p5js library, collide 2d library, sound library and Google Teachable Machine, this is a classical rock-paper-scissor game where objects are selected based on user hand gestures and poses.

Notifications You must be signed in to change notification settings

fhylinjr/Machine-Learning-Rock-Paper-Scissors-Game

Repository files navigation

Machine-Learning-Rock-Paper-Scissors-Game

Using Java Script's p5js library, collide 2d library, sound library and Google Teachable Machine, this is a classical rock-paper-scissor game where objects are selected based on user hand gestures and poses. Submitted by: Philip Boakye

Time spent: 15 hours spent in total

User Stories

The following required functionality is completed:

  • User can choose whether or not to enable game music
  • User can use either hand gestures or actual objects to play the game
  • Computer or user's opponent randomly selects its object at each turn
  • User can choose to restart game at the end.
  • User and opponent's scores update after each turn

Video Walkthrough

Here's a walkthrough of implemented user stories:

GIF created with LiceCap.

Notes

Since I am very new to JavaScript and web dev, I had challenges figuring some updates. Also image classification could be improved. However, there are a lot of resources online and p5js documentation provides very good suggestions. If this is your first time, you need a lot of patience and reading stack errors from the logcat to figure out which lines and which files should be debugged. Feel free to comment and make improvements !!

License

Copyright [2020] [Philip Boakye]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Using Java Script's p5js library, collide 2d library, sound library and Google Teachable Machine, this is a classical rock-paper-scissor game where objects are selected based on user hand gestures and poses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published