Asynchronous Input from PS/2 keyboard
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Desktop in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!