Rock-Paper-Scissors
This programm was more or less inspired by an example done in the course 'An introduction to Interactive programming in Python' at coursera.org
We use the reasoning of assigning numbers to each choise the player and the computer make and then compute their difference.mod3
According to this result we define the winner!
Zitieren als
Lazaros Moysis (2024). Rock-Paper-Scissors (https://www.mathworks.com/matlabcentral/fileexchange/39461-rock-paper-scissors), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Gaming > Just for fun >
- MATLAB > External Language Interfaces > Python with MATLAB > Call Python from MATLAB >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | Fixed an error, when a player inputs anything other than rock-paper-scissors. |
||
1.0.0.0 |