This is what i have so far. i am able to target the pits and the seeds itself. My 'seeds' are just a number displayed in the pits.I have not targeted the storage yet so maybe i should define a variable that can. Im able to get the next pits number updated but the ones following do not update
/// event listener to hear pits clicked
allPits[i].addEventListener('click', () => {
/// targeting pits indivually but also the seeds amount within
let currentSeeds = allPits[i].dataset.seed
// hitting and changing hardcode html-- 4-4=0
allPits[i].innerHTML = allPits[i].dataset.seed - currentSeeds
console.log('clicked:', allPits[i])
console.log(allPits[i+1])
///interating thru the following pits to add a seed
allPits[i+1].dataset.seed++
console.log('add', allPits[i+1].dataset.seed)
//changing the hardcoded 4 to +1 to add to the next pits seed count
allPits[i+1].innerHTML = allPits[i+1].dataset.seed
//for loop to finish out the previous code
for(let k = 0; k < currentSeeds; k++){
console.log('currentseeds', currentSeeds)
//delivers the +1 seed to next pit
currentSeeds[k] = allPits[i+k]
}
})
}