これはSOの私の最初の投稿です^_^
QT フレームワークで文字スクランブル ゲームを実装しようとしています。本編は終わったのですが、ゲーム中にボタンが押されるのを待つプログラムの作り方が分からなくてビックリです。
それを手伝ってください。前もって感謝します
これが私のゲームサイクルの疑似コードです:
//initialize grid, score, time
// accept words until timer expires
while (true) {
// draw the current state of the grid
// log board
// get current time
// report score
// check for game's end
// report time remaining
// prompt for word and converting it to char*
//HOW TO WAIT UNTILL BUTTON PRESSED????!!!!
// check whether to scramble grid
// or to look for word on grid and in dictionary
}
PS 初めての投稿なので、質問をより正確に作成する方法についての提案をいただければ幸いです。