glut game

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »

77 Replies - 4237 Views - Last Post: 19 August 2018 - 08:27 PM Rate Topic: -----

#16 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 04 February 2018 - 04:18 PM

I have also read a lot of books over the years as well, I guess I am quite slow in learning new stuff.
I am learning some AI for this simon game, which is new to me.

This post has been edited by pbivens85: 04 February 2018 - 04:22 PM

Was This Post Helpful? 0
  • +
  • -

#17 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 04:25 PM

Hmm, yes AI is quite involved which AI technique are you looking to implement...?
Was This Post Helpful? 0
  • +
  • -

#18 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 04 February 2018 - 04:29 PM

since I am new to AI I am unsure of how to proceed. the only AI I know is the A* algorithm, I am reading the oreilly book on AI and game development.
Was This Post Helpful? 0
  • +
  • -

#19 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 05:42 PM

Err Yeah...

the A* is going to pretty useless in a SIMON game..... I would have thought...

I would try something like an MDP..

https://en.wikipedia...ecision_process
Was This Post Helpful? 0
  • +
  • -

#20 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 04 February 2018 - 05:47 PM

I have never heard of MDP , I will do some research on it.
Was This Post Helpful? 0
  • +
  • -

#21 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 06:42 PM

Well for a SIMON game you dont want the AI to be too clever too quickly so some reward feedback loop is in order....

At the beginning the computer will be very bad at playing SIMON but after a few games should start to get better and better till its unbeatable...

Thats why I suggest a Markov Decision Process...

An A* algorithm is useful in pathfinding or graph traversal... don't know how that would apply to a SIMON game..
Was This Post Helpful? 0
  • +
  • -

#22 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 04 February 2018 - 06:49 PM

I have read the wiki on MDP, let me know if I understand what I have read. MDP is used for decision making that is random and is for the player decision making.it is also dynamic programming.it is also used in robotics. I will have to brush up on my math skills.
Was This Post Helpful? 0
  • +
  • -

#23 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 07:12 PM

Yes but the decision making is reinforced by reward and punishment,

reward would be winning the game

punishment losing the game

eventually the AI will arrive at its own conclusion on how to win at SIMON as I say you wouldn't want to play against an AI that just wins all the time. :)
Was This Post Helpful? 0
  • +
  • -

#24 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 04 February 2018 - 07:14 PM

yes I have also read about reward and punishment, there sure is a lot of math involved.
Was This Post Helpful? 0
  • +
  • -

#25 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 10:21 PM

Yes AI tends to be very math Intensive....
Was This Post Helpful? 0
  • +
  • -

#26 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: glut game

Posted 04 February 2018 - 10:41 PM

You can however use a library to ease the pain a little

http://www.opennn.ne...load/index.html
Was This Post Helpful? 0
  • +
  • -

#27 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 06 February 2018 - 06:52 PM

well before I get into some complex AI algorithms, I am doing some simple pseudocode.
initialize num to 1 to 4
initialize rect to false
    if rect is false
          dim the square
    else rect is true
          brighten the square
if mouse pointer is square selected
    dim the square 
    brighten the square
else
    end program


This post has been edited by pbivens85: 06 February 2018 - 06:55 PM

Was This Post Helpful? 0
  • +
  • -

#28 ndc85430   User is offline

  • I think you'll find it's "Dr"
  • member icon

Reputation: 936
  • Posts: 3,751
  • Joined: 13-June 14

Re: glut game

Posted 06 February 2018 - 10:31 PM

OK? There didn't seem to be a question in there...
Was This Post Helpful? 0
  • +
  • -

#29 pbivens85   User is offline

  • D.I.C Addict

Reputation: -13
  • View blog
  • Posts: 507
  • Joined: 22-October 13

Re: glut game

Posted 07 February 2018 - 04:09 PM

I just wanted to know if my pseudocode is on the right track?
Was This Post Helpful? 0
  • +
  • -

#30 ndc85430   User is offline

  • I think you'll find it's "Dr"
  • member icon

Reputation: 936
  • Posts: 3,751
  • Joined: 13-June 14

Re: glut game

Posted 07 February 2018 - 11:40 PM

I don't really know what this application is or what you're trying to do, but consider lines 2-6 in your pseudocode: do you really need an if/else given that you've set the value of rect?

As we've told you, you should be trying things out and debugging when they don't work.
Was This Post Helpful? 0
  • +
  • -

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »