Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2017-09-13 15:19:30

Mathegocart
Member
Registered: 2012-04-29
Posts: 2,226

Help me program this Java program.

I'm trying to program a Java program that makes a Robot that has a set configuration: (1,1,North,36 beepers). We have an open 10x10 space where I must make it place 8 beepers at (1,1), 7 beepers at (1,2), 6 beepers at (1,3), 5 beepers at (1,4) and so forth and so on. It ends on (1,9) with NO BEEPERS underneath. A beeper is a black circle. We can put beepers on other beepers. I can only use move(); and putBeeper(); ONCE EACH. I've tried using a loop, but it hasn't worked. Can anyone help?
Commands that robot knows(move, putBeeper, pickBeeper, turnLeft)


The integral of hope is reality.
May bobbym have a wonderful time in the pearly gates of heaven.
He will be sorely missed.

Offline

#2 2017-09-13 23:22:48

Mathegocart
Member
Registered: 2012-04-29
Posts: 2,226

Re: Help me program this Java program.

Anyone?


The integral of hope is reality.
May bobbym have a wonderful time in the pearly gates of heaven.
He will be sorely missed.

Offline

Board footer

Powered by FluxBB