10 likes | 111 Views
Senior Project – Electrical Engineering - 2005 Electric Abalone Referee Using MATLAB Benjamin Bayes, Dean Miller Advisor – Prof. Rudko. Objectives. To make a digital referee for an unaltered Abalone Referee would sense every move made Would identify legal moves, and flag illegal ones
E N D
Senior Project – Electrical Engineering - 2005Electric Abalone Referee Using MATLABBenjamin Bayes, Dean MillerAdvisor – Prof. Rudko Objectives • To make a digital referee for an unaltered Abalone • Referee would sense every move made • Would identify legal moves, and flag illegal ones • Allow the players to reset the game if move is illegal • Would display score, moves, and a digital representation of the board • Compatible with 2 players (due to time restraints, we were unable to expand it to a possible 6 players) Image Processing Solution • User initialized board • Once endpoints are known, all other points can be found through midpoint equations • Processing based on the analysis of the RGB values at each point Logic System Results • Program works! Can referee a complete game • Continuous image creation through Creative Webcam Software and camera mounted to stand • Program initializes board, keeps track of whose turn it is, keeps track of score, determines the winner • If an error is made, program displays last correct board orientation and waits for user to correct • Compatible with multiple staring positions • However, did not have time to make program compatible for multiple players/colors • Given: Board’s old and new position (lbig: 11:21:2 dimensional array) created from image processing • # Red, # White marbles on old and new boards (NR1,NR2, NW1, NW2 from lbig) • # of changes and change coordinates (change, ccoor(2:X array), from lbig) • How do we determine legal moves? • Solution: 1000+ lines of If, ElseIf statements!