As a happy fat house, playing games is a must-have at home. Whether it is the hot games of King Glory, Eating Chicken, and the original god, or jumping, synthesizing big watermelon, 2048, these popular small games, let’s all There are involved. But in order to become a "top player", I always go crazy to find various strategies in major communities and websites, and grow up with the strategy. I often wonder when I will become a master of strategy in the generation, so that everyone can learn from me. Technology, isn't it exciting! There was a flash of inspiration. After all, I am a fat house with a little skill. I have been obsessed with deepmind and ran AlphaGo. I cannot train an AI to play.
Intensive learning training 2048 game, observe how the AI finds the exit.
Since you want to practice your hands, let's start with a simple, pure strategy game like 2048. After searching the Internet, I found the open source 2048 game environment.
3. Create a network model
Here I am using a very simple three-layer convolutional network
After completing the above three steps, you can start training happily:
I only trained for 10 minutes. In this strict environment where you can't go wrong, you can reach 256 points in reasoning. If you use more advanced algorithms and longer training time, 2048 is not a dream.
detailed code acquisition method: click this link to run directly online, or download https://marketplace.huaweicloud.com/markets/aihub/notebook/detail/?id=3a11d09b-85f5-4ae4-b4a7-9b19be2b2444d
The source of this technology was contacted in the HUAWEI CLOUD AI full-stack growth plan last year. It is said that this year HUAWEI CLOUD has started a new round of [AI combat camp], 6 major classification combat camps Python, ModelArts, MindSpore AI framework, depth , Reinforcement, machine learning, help us become the "AI king"! fast manner, you can also get surprise gifts such as Mate 30Pro, smart watches, wireless earphones, etc.! I have scanned the QR code below to register~Are you still waiting?
Click to follow and learn about Huawei Cloud's fresh technology for the first time~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。