Asynchronous Input from PS/2 keyboard
Afficher commentaires plus anciens
Hi, I have a question on asynchronous input from keyboard (not instrument).
I am trying to write a chess program using the parallel computing toolbox with nVidia GPU.
In MATLAB, I can write a code like
move = input('Input your move:', 's');
However, during waiting opponent's move, MATLAB can't calculate anything until opponent's move is specified. I want to simulate possible moves while waiting until an opponent's move.
http://www.mathworks.com/help/techdoc/matlab_external/f62852.html This is related article from MathWorks, but it is for instruments. Is there any possible way that I can calculate possible moves in background while waiting input?
Thank you for your help.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Desktop dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!