Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

method help

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi guys

i kinda got my method working but not as i wanted it to basically this method is replacing the old one at the bottom. and what i want it to do
select number of human players.. you have from 1 to 5 but throw an exception if more then 5 and loop allowing the user to select human players again. thats what ive done below. the bottom code is the old code you can have a look and see what im trying to do to it...





old code
/
[ October 01, 2006: Message edited by: steve low ]
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't start a new topic in the middle of the same discussion. Anyone answering here would benefit by seeing the context in the original discussion here. This really doesn't belong in JiG(I), so I'm going to close this one and leave the one in Beginner's open.
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
    Bookmark Topic Watch Topic
  • New Topic