Sony toio™ Application Creative Development Essay | Alliance War

✨ If you can use the strength of all people, you will be invincible in the world; if you can use the wisdom of all people, you will have no fear of the saints. ——Sun Quan

Foreword:

         Today I would like to share with you an easy-to-use gadget to assist us in learning, Sony toio™, an educational and entertaining programming robot. You can learn about programming while playing games and interacting, and improve children's creativity and thinking skills. Come! Let’s immersively experience the performance of Sony toio™ in fighting games.

1. What is Sony toio™?

  In general, Sony toio™ has a very wide audience , ranging from three-year-old children who have just entered kindergarten to elementary schools, junior high schools, high schools, universities, and adults. It is an AI robot that everyone can participate in.

  There are many ways to play and a high degree of freedom . We can put Sony toio™ in various clothes and armors and easily transform it into a brave warrior, a fun car, etc. From the introductory guide to turning your imagination into reality step by step. Through handcrafting and playing games with partners, children can immerse themselves in the joy of creation, constantly inspire inspiration, and grow naturally. As shown in the picture below, there are a variety of fun and creative toys.

2. Practical experience

  1. Introduction to the National War Game

        game rules:

        The rules of this game are that if the guard protects his own king within 2 minutes and is not knocked down by other Q treasure generals, he will win. On the contrary, as long as the siege general knocks down the opponent's king within two minutes, he will win. At the same time, the guard can also win by driving the attacker out of the operating board.

        Role:

        Defender: Guard + King

        Attacker: Siege General

Figure 2.1 The attacking general, the yellow defending guard, and the king

Figure 2.2 The ongoing fierce national war

  2. Immersive video experience

        In the video, we can see that Q Bao is operated through the computer keyboard or other peripherals to defend one's country or expand the territory, and finally win the victory after a battle of wits and courage between the two sides. Of course, you can also unlock a variety of gameplay, purchase multiple Q treasures, create a national war game similar to the Seven Heroes, and experience the charm of Sony toio™ in the game.

Sony tito-national war game

3. Introduction to core code

        1. Use a timer to control the length of each game and detect whether it times out. After the timeout, the defending team will win.

import time

task_time = int(input('请输入倒计时时间(分钟):'))
start_time = time.strftime('%H:%M:%S',time.localtime()) #获取格式化当前时区时间
print('开始游戏:', start_time)

for i in range(1, task_time*60 + 1): #分钟化为秒
    if i % 5 == 0: #每5秒打印一次
        print('剩余时间:%i秒' % (task_time*60 - i))
    time.sleep(1)

final_time = time.strftime('%H:%M:%S',time.localtime()) #获取结束时间
print('结束游戏:', final_time)

        2. Determine the game result by judging the coordinates of the Q treasure and whether it is outside the operating panel.

             For specific implementation logic, we can refer to the following link.

       https://toio.github.io/toio-spec/en/docs/ble_motor/#direction-of-cube-travel

        3. Determine whether the attacker's Q treasure wins by judging whether the coordinates of the attacking side's Q treasure are in the king's coordinates.

3. Summary

        All in all, Sony toio™ not only exercises programming skills, but also practical and thinking skills, allowing children and parents to grow quickly in the game and promoting parent-child relationships. If you are still troubled by your child's interests, you might as well try Sony toio™ and let it open the door to a new world for you.

        Of course, this article is just a simple sharing. If you are interested, please leave a message to discuss and unlock more gameplay together. At the same time, you can also click on the link below to learn more about Sony toio™ and create your own exclusive Q treasure.

Sony toio is fun to learn programming, super creative and want to play icon-default.png?t=N7T8https://www.sonystyle.com.cn/minisite/intelligent/toio/toio_introduce/mobile.html

Sony toio, programming online mall icon-default.png?t=N7T8https://www.sony.com.cn/content/sonystyle/products/intelligent/index/toio_gogorobot/gogorobot.html

Sony toio, Sony Technology icon-default.png?t=N7T8https://www.sonystyle.com.cn/minisite/intelligent/toio/toio_introduce/technology.html

Guess you like

Origin blog.csdn.net/qq_29061315/article/details/132757797