Phantom
1 program
Added 2026-03-12T23:57:02Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Phantom OS language
Provenance: commit 9529a6607e · authored 2026-03-13T00:57:29+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Tetris Utilities Class
Provenance: commit 9529a6607e · authored 2026-03-13T00:57:29+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
package .ru.dz.phantom.tetris;
class utilites {
var _internal_counter : int;
var _bootObject;
void init( var bootObject ) {
// NOTE : This should be removed to real random number retrieving
_internal_counter = 0;
_bootObject = bootObject;
}
int generateRandom( var minValue : int, var maxValue : int ) {
if ( maxValue <= minValue ) {
throw "ArgumentException";
}
//
_internal_counter = _internal_counter + 11745 - ( _internal_counter / 5 );
if ( _internal_counter > 60000 ) {
_internal_counter = _internal_counter - 50000;
}
//
var divided : int;
divided = _internal_counter / ( maxValue - minValue + 1 );
return ( minValue + _internal_counter - divided * ( maxValue - minValue + 1 ) );
}
void sleepMilliseconds( var milliseconds : int ) {
// it will wait not less than for a second in win env anyway yet
_bootObject.21( milliseconds );
}
void sleep( var seconds : int ) {
sleepMilliseconds( seconds * 1000 );
}
};