• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AP Computer Science Gridworld Question?

 
Bear Kim
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, if by chance anyone on here knows a bit about the AP Computer Science GridWorld case study, I have a question about the location class.

I imported the Location class, but I'm still getting a "symbol not found" error for Location.FULL_CIRCLE

setDirection(((int) Math.random((Location.FULL_CIRCLE / Location.HALF_RIGHT) * 45)))

Any help would be greatly appreciated!
 
Tina Smith
Ranch Hand
Posts: 208
9
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that the Location class is on your classpath, ie that the compiler can see the class.

Is the Location class something you've been provided with your assignment, and if so where is it in relation to your other classes?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic