AI opponent for board game

Oct 12, 2022

Hello all, 

I recently found a wonderful board game template downloaded from eLearning Locker that I mistakenly showed to a client. Although I expressed that this template is intended for one player - and objective is to beat personal score, the client wants to see the learner face an AI opponent. 

The base mechanics are the player "rolls a dice" and the player moves the amount of spaces across a linear game board equal to the dice roll. If the player lands on a special space, a question with a point value pops up. If they answer correctly, the question's value will be added to their point total. Ideally, I would like the player to be able to choose from 3 different questions with varying degrees of difficulties and point values.

I have a few unknowns here. Would an AI opponent even be possible for something like this? The problem is the AI would have to react to the players point total. If the player has a higher point total than the AI, the AI must be able to choose a question with a higher point value in order to gain ground on the player. I also am not sure if a turn based system is even possible. Any insight on this would be a huge help. I've attached links to eLearning locker and the brief video walkthrough. I've also attached a copy of the template.

Template: https://elearninglocker.com/portfolio-items/storyline-game-template-journey/
Video overview of template: https://www.youtube.com/watch?v=IbEF0lH-9Bg

4 Replies
C C

Using JS isnt off the table for me but not exactly in my wheel house. I was hoping to be able to use range variables. Something like - If the player's current point value falls between a certain range, then the AI would get a question slide with the max value, or whatever value they need to close the gap.

C C

Im not referring to altering any existing triggers. My intention would be to use triggers as is. And as I mentioned, using JS is still a possibility, I just am not clear as to what direction to take when applying JS to my course. So if JS is mandatory, what would be it's application when used for AI opponent?