My journey to learning javascript led me to create a simple game called circle of crosses. Below is the code I used:
(JS)
// JavaScript code here
(HTML)
<!DOCTYPE html>
<html>
// HTML code here
</html>
I came across an issue while trying to display a table in my game using a function similar to 'draw'. The function worked initially, but failed to draw anything when used again. I verified that the values in the 'tab' array had changed, yet the 'draw()' function did not update the table accordingly. I am open to suggestions on how best to display this table and would appreciate any insight into what might be causing this issue.
One proposed solution is to assign IDs to all cells in the current table and update their values dynamically. However, as a novice in javascript, I would like to address the initial problem first before exploring alternative methods for displaying the table.