機器人技術和產業越來越受到國際間的重視並蓬勃發展,全世界在研發機器人的領域中都投入了相當多的人力與成本,除了看重機器人產業的市場潛力外,發展機器人產業更能促進高科技領域的發展。尤其近年來人口老化的問題日益嚴重,從社會觀點來看,互動機器人不但能夠陪伴老年人減少人力負擔更能透過互動遊戲促進老年人思考,基於此現象,本論文使用Raspberry Pi、BrickPi以及Picamera實現設計一個對弈遊戲機器人,其包含遊戲人工智慧、馬達轉動控制以及OpenCV影像處理,經由影像處理分析棋盤資訊,並把資訊處理判斷後經由使用最佳解優先搜尋法計算判斷下棋位置,接著控制馬達移動來達到對弈下棋的效果。最後,本論文透過實際測試所設計出的互對奕遊戲機器人,由實際的操作結果可以得知所設計的對弈遊戲機器人能夠隨時陪伴玩家玩井字遊戲,並且具有聲音的功能來增加遊戲之間的互動娛樂性。
In internationally, the robot technology and industry have been regarded as a booming industry and they have high priority to develop. Nowadays many countries have invested a lot of strength, efforts, and cost for the robot technology. Not only because of the huge robot application market, but also it can contribute to the development of high technology in every industry. Recently, population ageing phenomenon has become more serious. From the viewpoint of sociology, the interactive robot can not only company with the older people, but also can help them to think by playing interactive games. Because of this, this study used Raspberry Pi, BrickPi and Picamera to design of an interactive robot playing tic-tac-toe, which includes a game artificial intelligence, a motor position control and image processing via OpenCV. According to the image processing, the system get the board information and return the information to the game artificial intelligence which uses the optimal search method to calculate the best playing position. Finally the real time experimental results show proposed interactive robot playing tic-tac-toe has the ability to move motors by itself. In additional, people can play the tic-tac-toe game anytime and join interactive voice to increased more entertainment.