1. Trang chủ
  2. » Luận Văn - Báo Cáo

Game for blind people

9 3 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Nội dung

TABLE OF CONTENTS LISTS OF FIGURES INTRODUCTION 1.1 Reasons For Choosing The Project 1.2 Introduce The Library Using In Game GAME FOR BLIND PEOPLE 2.1 Target 2.2 Structure Of The Game 2.2.1 Step 1: Convert The Sentences Form The Word To The Speech 2.2.2 Step 2: Convert The Sentences Form The Speech To The Text 2.2.3 Step 3: Creating Game Logic And Return The Results To Determine Who The Winner Is 2.2.4 Step 4: Asking People To Play Again Or Not CONCLUSION 3.1 The Results 3.2 Team’s Benefits 3.3 Limitations Of The Game REFERENCES 10 LISTS OF FIGURES Figure 1: AI Ask Figure 2: Player Respond Figure 3: AI Analyse Figure 4: AI Speech Figure 5: Declare Variables Figure 6: Covert Sentences Text To Speech Figure 7: Covert Sentences Speech To Text Figure 8: Logic of The Game Figure 9: Return the results to determine who the winner is Figure 10: Speech who is the winner to .8 Figure 11: Asking people play again INTRODUCTION 1.1 Reasons For Choosing The Project Today, with the rapid development of the field of information technology, the field of video games is not only limited to the video games with which you interact on a screen; it also includes everything from virtual toys to hyper-cinematic blockbuster action experiences to slow-paced walking simulators In the broadest sense, most games incorporate some form of artificial intelligence (AI) For instance, developers have used AI for years to give seemingly intelligent life to countless game characters, from the ghosts in the classic arcade game Pac Man to the bots in the first-person shooter Unreal, and many others in between The huge variety of game genres and game characters necessitates a rather broad interpretation as to what is considered game AI This remarkable development allows people to think of a new game genre: games for the visually impaired, but able to appeal to completely normal gamers According to Richard van Tol, co-CEO of Audio Games.Net, an information site for fans and game producers, roughly 3,000 games for blind people are sold each year They not only attract blind people but also appeal to other gamers 1.2 Introduce The Library Using In Game Pyttsx3: is a text-to-speech conversion library in Python Speech recognition: for performing speech recognition Random: is an in-built module of Python which is used to generate random number, randint is an inbuilt function of the random module in Python GAME FOR BLIND PEOPLE 2.1 Target As a result, we decided to make a video game called "Rock, Paper, or Scissors" Despite the fact that this is simply a test version for research purposes, the game designers want to generate a variety of emotions for the players In generally, the aim of games is discover a new self, new behaviors, and new relationships are created When we understand all of this, playing then takes on its full meaning 2.2 Structure Of The Game The game is divided into four steps Step 1: The game will strat and AI will turn on This is the stage at which AI can communicate through sounds Step 2: The player now interacts with the AI.The player does not require any extra equipment to play the game; instead, the player can simply use their own voice Step 3: the AI will begin selecting and analyzing the gamers in order to produce the most reasonable results Stage 4: In this step, AI can convert the response from text to speech Figure 1: AI ask Figure 2: Player respond Figure 3: AI analyzse Figure 4: AI speech 2.2.1 Step 1: Convert The Sentences Form The Text To The Speech At the very beginning, we need to initialize the pyttsx3 library, which is AI can communicate with humans through sounds Moreover, I declare variables the robot ear, and the robot brain is the variable that AI should communicate with us through that Figure 5: declare variables In figure 5, we set up that AI will ask player Futhermore, we want AI to speech that sentence we were programmed In other words, based on a library that can convert the sentence from text to speech Figure 6: covert sentences text to speech 2.2.2 Step 2: Convert The Sentences Form The Speech To The Text In this section, the mic will be turned on to record the player's voice in order to determine their preference and convert what is player said form the speech to the text The aim of this feature to help AI select a response to gamers When the player speaks, the "with" feature activates the microphone, and then, when the gamers have finished speaking, the microphone will automatically turn off However, this will lead to another problem known as a "runtime error", which occurs when the player does not say anything We just use the "try" and "except" features to fix this If an error occurs again, the "execpt" feature will be used Figure 7: covert sentences text to speech 2.2.3 Step 3: Creating Game Logic And Return The Results To Determine Who The Winner Is Firstly we are creating game logic Acording to wikipedia it has three possible outcomes: a draw, a win or a loss A player who decides to play rock will beat another player who has chosen scissors ("rock crushes scissors"), but will lose to one who has played paper ("paper covers rock"); a play of paper will lose to a play of scissors ("scissors cuts paper") If both players choose the same shape, the game is tied and is usually immediately replayed to break the tie Figure 8: logic of the game Secondly, we programed the AI system he AI will reply to the player based on their choices, whether they win, lose, or draw The crucial thing is that AI can receive "input" information anyalise the information and return the result "output" to the player through speech On the other side, if the player makes a mistake It is the input is not rock, paper or scissors, AI will asking people play again Figure 9: Return the results to determine who the winner is Thirdly, After we have know who is the winner the next step is using a pyttsx3 library to transform the result of the game form text to speech Figure 10: Speech who is the winner to payer 2.2.4 Step 4: Asking People To Play Again Or Not Last but not least, after asking the player whether he wants to play again and using a while loop, the program will run again if the user prefers to continue playing Figure 11: Asking people play again CONCLUSION 3.1 The Results After developing and testing the game, we realized that blind people face several obstacles As a result, a game for blind people risks being incredibly difficult to complete in its official edition 3.2 Team’s Benefits • learn new programming langue python language • learn how to use library • learn how to write program for virtual assistant • learn how to write program for games 3.3 Limitations Of The Game • Restrict the ideas of the games • It is simple to generate a sense of tiredness REFERENCES https://en.wikipedia.org/wiki/Rock_paper_scissors https://dev.to/rohit19060/how-to-create-a-virtual-assistant-using-python4h7l https://realpython.com/python-rock-paper-scissors/ https://www.bhphotovideo.com/explora/computers/features/generalintroduction-video-games-medium ... of Audio Games.Net, an information site for fans and game producers, roughly 3,000 games for blind people are sold each year They not only attract blind people but also appeal to other gamers 1.2... Figure 11: Asking people play again CONCLUSION 3.1 The Results After developing and testing the game, we realized that blind people face several obstacles As a result, a game for blind people risks... module in Python GAME FOR BLIND PEOPLE 2.1 Target As a result, we decided to make a video game called "Rock, Paper, or Scissors" Despite the fact that this is simply a test version for research purposes,

Ngày đăng: 10/10/2022, 16:26

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w