授業でなにを作るか迷っているときにパートナーが最近競馬に行った話をしてきたのがきっかけです。 M5Stackは小さい画面なので情報をわかりやすく表示することができます。そのためレースの進行状況が視覚的に表現することができるので、うまく競馬を表現することができました。
When I was unsure about what to create for class, my partner's recent story about going to the races sparked an idea. The small screen of the M5Stack allowed us to display information clearly, making it perfect for visually representing the progress of a race. This enabled us to effectively simulate a horse race.
・馬に見立てた記号を使い、ランダムに速さを変えることができた。 ・一着になった馬の名前とウィナーという文字を表示することができた。 ・全員の馬がゴールするまで待ちwinnerを表示することができました。 ・ループせずに一度ゴールしたら終わるようにし、ボタンを押せばもう一度 始まるようにした。 ・ゴールのラインに線を表示することができた。
We used symbols representing horses, and could randomly change their speed. We were able to display the name of the horse that finished first and the text "Winner". We were able to display "Winner" and wait until all horses crossed the finish line. We ensured that the race ends once a horse reaches the goal without looping, and allowed restarting by pressing a button. We were able to display a line at the finish line. If you have more details or need further assistance with any of these points, feel free to ask!