Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3845190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:12:23+00:00 2026-05-19T16:12:23+00:00

I have an artificial neural network which plays Tic-Tac-Toe – but it is not

  • 0

I have an artificial neural network which plays Tic-Tac-Toe – but it is not complete yet.


What I have yet:

  • the reward array “R[t]” with integer values for every timestep or move “t” (1=player A wins, 0=draw, -1=player B wins)
  • The input values are correctly propagated through the network.
  • the formula for adjusting the weights:

enter image description here


What is missing:

  • the TD learning: I still need a procedure which “backpropagates” the network’s errors using the TD(λ) algorithm.

But I don’t really understand this algorithm.


My approach so far …

The trace decay parameter λ should be “0.1” as distal states should not get that much of the reward.

The learning rate is “0.5” in both layers (input and hidden).

It’s a case of delayed reward: The reward remains “0” until the game ends. Then the reward becomes “1” for the first player’s win, “-1” for the second player’s win or “0” in case of a draw.


My questions:

  • How and when do you calculate the net’s error (TD error)?
  • How can you implement the “backpropagation” of the error?
  • How are the weights adjusted using TD(λ)?

Thank you so much in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:12:23+00:00Added an answer on May 19, 2026 at 4:12 pm

    If you’re serious about making this work, then understanding TD-lambda would be very helpful. Sutton and Barto’s book, “Reinforcement Learning” is available for free in HTML format and covers this algorithm in detail. Basically, what TD-lambda does is create a mapping between a game state and the expected reward at the game’s end. As games are played, states that are more likely to lead to winning states tend to get higher expected reward values.

    For a simple game like tic-tac-toe, you’re better off starting with a tabular mapping (just track an expected reward value for every possible game state). Then once you’ve got that working, you can try using a NN for the mapping instead. But I would suggest trying a separate, simpler NN project first…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to play Tic-tac-toe using an artificial neural network. My configuration for the
I'm writing a program to simulate an artificial neural network. I have the following
I have made a Tic-Tac-Toe game for 2 players. Now, I want to give
I have seen many websites and blogs explain ANNs (Artificial Neural Networks), but none
I am porting some C code involving an artificial neural network to Java. I
I have written an artifical neural network (ANN) implementation for myself (it was fun).
I have a database (which I can not modify) with 6 tables in Oracle
I have an artificial intelligence project, it has trained neural networks (The neural networks
have been playing with Cubepoints (wordpress plugin) and have installed the ranks module but
Have a singleton class for BNRItemStore, but when I tried to call it, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.