Matrix Poker
Version 1.21.0.1 (19,1 ko) par
Igor Podlubny
Game: fill 5x5 matrix with random numbers to get maximum score by forming premium combinations.
Matrix Poker is a combination of hazard and combinatorial thinking. The game consists in filling the game board with random numbers (from 1 up to 13) to get a maximum score by forming premium combinations in rows, columns, and on two diagonals.
HOW TO PLAY
To start the game, run MATPOKER.M. You will see 25 empty green cells surrounded by 24 gray cells. Above them there are three buttons ("New", "Count", "Help"), and a green cell with a random number between 1 and 13.
Look at that number in the upper-left corner of the game window and click on an empty cell to place the number. Repeat this step until all green cells are filled by numbers, and try to create as many premium combinations as
possible. After filling all cells, click on "Count" button to see your score. The abbreviations of formed premium combinations, and their values will appear in surrounding gray cells.
To see the rules and the table of premium combinations in your default web browser, click on "Help" button.
To start a new game, click on "New".
(C) 2002-2003, Igor Podlubny (corresponding author, igor.podlubny@tuke.sk), Peter Konecny (peter.konecny@email.cz)
CHANGES:
September 22, 2003:
Slightly updated to work properly with Matlab R11, R12, and R13.
October 6, 2016:
The code has been updated by Matej Mikulszky,
student, Technical University of Kosice, BERG Faculty,
e-mail: matej.mikulszky@student.tuke.sk,
to make the game window resizable.
Citation pour cette source
Igor Podlubny (2024). Matrix Poker (https://www.mathworks.com/matlabcentral/fileexchange/3168-matrix-poker), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2009a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Signal Processing dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.21.0.1 | Updated colors of some elements. |
||
1.21.0.0 | Removed rudimentary 'clear' command, thanks to Carl Witthoft's comment. |
||
1.2.0.0 | The code has been updated to make the game window resizable. |
||
1.0.0.0 | Little text corrections. |