User talk:Sheldor

From Robowiki
Jump to navigation Jump to search

Contents

Thread titleRepliesLast modified
Robocode Problem519:40, 1 September 2014
Logical Question822:53, 16 December 2013
Thread of grammatical shame504:51, 12 December 2013
First page
First page
Previous page
Previous page
Last page
Last page

Robocode Problem

When I try to open the robocode.bat file, the console opens and then immediately closes. I took a screenshot of the console and it reads

"[file path]>java -Xmx512M -cp libs/robocode.jar robocode.Robocode %*

'java' is not recognized as an internal or external command, operable program or batch file."

Any ideas? Thanks.

Sheldor (talk)21:43, 30 August 2014

I should have made it more clear in the OP that I'm not able to use Robocode at all now.

Sheldor (talk)15:41, 31 August 2014
 

Assuming Java is installed, this would be the step you're missing: Robocode/System_Requirements#PATH_must_be_set

Rednaxela (talk)16:15, 31 August 2014

It worked! Thanks.

Sheldor (talk)16:38, 31 August 2014
 

Huh. It seems my Robot Editor no longer has a built-in codesize checker. Did this change with the update, or could I have another missing classpath somewhere?

Sheldor (talk)18:06, 31 August 2014

Nevermind, I'm using Voidious's command line trick from here now, so it doesn't matter.

Sheldor (talk)19:40, 1 September 2014
 
 

Logical Question

Is there any kind of bit operation or arithmetical trick that would allow me to do something like integerWhichCouldOnlyHaveAValueOfZeroOrOne == 0 ? otherIntegerWhichCouldOnlyHaveAValueOfZeroOrOne == 0 ? 0 : 1 : 2 without so many expensive conditionals?

Sheldor (talk)17:20, 25 June 2013

Like this?

integerWhichCouldOnlyHaveAValueOfZeroOrOne | otherIntegerWhichCouldOnlyHaveAValueOfZeroOrOne + integerWhichCouldOnlyHaveAValueOfZeroOrOne

MN (talk)19:02, 25 June 2013

Yes, I think that would work.

Thanks

Sheldor (talk)19:58, 25 June 2013
 

If there is no possibility that integerWhichCouldOnlyHaveAValueOfZeroOrOne == 1 and otherIntegerWhichCouldOnlyHaveAValueOfZeroOrOne == 0, or if you don't care, then a simple addition would work.

Skilgannon (talk)20:59, 25 June 2013

There is a chance that the first and second integers would add up to 1 in two different scenarios. I do care to avoid this because I was planning to use this in VCS segmentation. It would not be prudent to represent two very different situations by the same segment.

Sheldor (talk)21:29, 25 June 2013

If you're using it for wall segmentation, it should be fine just adding. The chances of the closer one being triggered but not the further is quite rare (although it can happen, I admit).

Skilgannon (talk)22:03, 25 June 2013

If both wall checks be either 1 or 0 at the same time a vast majority of the time, what's the point of even having a second wall check?

Sheldor (talk)22:41, 25 June 2013

Hang on, is this two forward wall checks, or one forward and one reverse?

I was thinking two forward, where obviously the check which extends further will also be triggered in 99% of cases where the one that extends less is triggered.

If this is one forward, one reverse then I think they should actually be in different segments.

Skilgannon (talk)22:47, 25 June 2013
 
 
 
 
 

Thread of grammatical shame

Hi, everyone.

I like to think I have good grammar, but it's not perfect.

If anyone ever sees a spelling error/grammatical error/punctuational error/inaccuracy in any of my pages/posts, please report on this thread exactly what I did wrong. And, if I was correcting someone else when I made the mistake, feel free to rub it in. :)

Sheldor18:18, 19 March 2013

Your user page has omitted commas in the sentence: "If anyone has codesize issues[,] please post your code on the wiki[,] and I will try to help." Also, you should generally avoid ending sentences with a preposition.

AW (talk)04:26, 12 December 2013

Revenge >:-)

AW (talk)04:28, 12 December 2013

Well deserved. :)

Sheldor (talk)04:47, 12 December 2013
 

Heh, just don't look at my posts or pages. You'll find mountains of problems. It seems that the better my programming skills get, the worse my English skills become. I leave out words, misspell common words (by accident), and make all kinds of grammatical mistakes.

Usually this could be fixed by reading before I post, but I often forget to do so.

Chase04:40, 12 December 2013
 

"Also, you should generally avoid ending sentences with a preposition."

"This is the kind of tedious nonsense up with which I will not put!" -- Winston Churchill

Sheldor (talk)04:51, 12 December 2013
 
 
First page
First page
Previous page
Previous page
Last page
Last page