Home

Awesome

DoReFindMi

This is a game for Rainbow HAT for Android Things in which the aim is to find the sequence of the ABC buttons to press, which if followed in correct order, will play out the "do-re-mi" melody. The player's seek time is measured for an element of competitiveness.

<img src="https://pbs.twimg.com/media/C2JGfXlUkAA1Xaf.jpg:large" width="50%" />

Pre-requisites

Game flow and rules

Demo

Demo

Dependencies and architecture

The game makes use of the following individual components provided by Rainbow HAT:

Classes which provide access to these components implement things.supplier.*Supplier adapter interfaces and contain minimal logic to enable replacing them with other compatible devices, or a subset thereof, or stubs in tests. There are unit tests which do just that in the test source set. The logic of interaction with the devices is implemented in their respective things.controller.*Controller classes. A game contains of rounds which are initiated and announced when completed by GameController class, and Player’s *moves/guesses* are validated by Game class.

Build and install

In Android Studio, click on the "Run" button. If you prefer to run on the command line, type

./gradlew installDebug
adb shell am start com.tomaszrykala.dorefindmi/.DoReFindMiActivity

Schematics

No idea, I’ve used Rainbow HAT (contributions welcome).

Contributions

As above ;-)

Next steps

At the moment there are no hints as to what buttons should players press, akin to the popular game Simon (I genuinely did not know of it until a friend told me this project is like it). This should probably be added, because it can be argued that currently winning a game is based on pure luck, with just a little of short term memory requirement :-)

Credits

These excellent blogs helped to get this project off the ground:

License

Copyright 2017 Tomasz Rykała

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.