Let's play Tic-Tac-Toe on rqt!
rqt_tic_tac_toe.mp4
- ROS 2 Humble
cd ~/ros2_ws/src
git clone https://github.com/ShotaAk/rqt_tic_tac_toe.git
rosdep install -r -y -i --from-paths .
cd ~/ros2_ws
colcon build --symlink-install
First, register rqt_tic_tac_toe
in rqt
by executing the following command:
source ~/ros2_ws/install/setup.bash
rqt --force-discover
Next, start Tic-Tac-Toe.
- Start
rqt_tic_tac_toe
with each other. - Enter the player name in frame ID.
- Click on the board and the frame ID will be sent to the other player.
- Select your opponent's ID from sync ID and you are ready to play.
- Reset and start the game. Enjoy!
tic_tac_toe_pvp.mp4
https://en.wikipedia.org/wiki/Tic-tac-toe
Apache 2.0