- MobileJavaStudy/SnakeBite/FinalSource . . . . 19 matches
private final int boardWallWidth = 4;
boardWidth = canvasWidth - 6 - (canvasWidth - 6 - boardWallWidth * 2) % snakeCellWidth;
boardHeight = boardWidth / 10 * 8 - (boardWidth / 10 * 8 - boardWallWidth * 2) % snakeCellWidth;
boardInnerX = boardX + boardWallWidth;
boardInnerY = boardY + boardWallWidth;
boardInnerWidth = boardWidth - boardWallWidth * 2;
boardInnerHeight = boardHeight - boardWallWidth * 2;
Random random = new Random();
appleX = Math.abs(random.nextInt()) % snakeXRange;
appleY = Math.abs(random.nextInt()) % snakeYRange;
private Random random;
private int boardWall;
private final int WALL_COLOR = 0x000000;
boardWall = 2;
random = new Random();
appleX = (Math.abs(random.nextInt()) % ((boardWidth-1) / cellRect)) * cellRect + boardX;
appleY = (Math.abs(random.nextInt()) % ((boardHeight-1) / cellRect)) * cellRect + boardY;
paintWall(g);
public void paintWall(Graphics g) {
g.setColor(WALL_COLOR);
- 타도코코아CppStudy/0728 . . . . 5 matches
|| ZeroWiki:RandomWalk2 || [CherryBoy] || Upload:randomWork2_CheRy.cpp || 다시 ||
|| 랜덤워크 || [CherryBoy] || Upload:randomWalk_CherRy.cpp || . ||
* 인수형~~~~~ 파일 입출력 Random Walk2 올렸씁니다.. 지금 시간 8시..1시간정도 걸렸네요..-_-; 파일 입출력 고생하다..!! - [CherryBoy]
- JavaStudy2003/두번째과제/곽세환 . . . . 4 matches
RandomWalk
public boolean IsPostionWall(int x, int y) {
int dir = (int)(Math.random() * 8);
if (bo.IsPostionWall(x, y))
- RandomWalk2/질문 . . . . 4 matches
RandomWalk2의 변경4에 대한 질문인데요, (긁어서 보세요)
''RandomWalk2 Requirement Modification 4 is now updated. Thank you for the questions.''
- Randomwalk/조동영 . . . . 4 matches
= [RandomWalk]/[조동영] =
int random = rand()%8; // 0~7 까지의 임의의 수 생성해서 random 이란 integer 값에 대입
if (ibug + imove[random] <0 || ibug + imove[random] > Xroom-1 ||
jbug + jmove[random] <0 || jbug + jmove[random] > Yroom-1)
room[ibug+imove[random]][jbug+jmove[random]]++;
ibug = ibug + imove[random];
jbug = jbug + jmove[random];
2차원 동적 배열할때 벡터를 사용해도 좋음. [RandomWalk2/Vector로2차원동적배열만들기] 자료구조 숙제는 [STL]을 사용하면 더 편하게 할수 있는거 같다. - [상협]
- RandomWalk/성재 . . . . 3 matches
Random Work...
["RandomWalk"]
- Celfin's ACM training . . . . 2 matches
|| 30 || 3 || 110302/10010 || Where's Waldorf? || 1 hour 30 mins || [WheresWaldorf/Celfin] ||
- DebuggingSeminar_2005 . . . . 2 matches
|| [http://www.dependencywalker.com/ DependencyWalker] || Dependency Walker (Included at VS6) ||
- Gof/Singleton . . . . 2 matches
미로를 만드는 MazeFactory 클래스를 정의했다고 하자. MazeFactory 는 미로의 각각 다른 부분들을 만드는 interface를 정의한다. subclass들은 더 특별화된 product class들의 instance들을 리턴하기 위한 opeation들을 재정의할 수 있다. 예를 들면 BombedWall 객체는 일반적인 Wall객체를 대신한다.
- JavaStudy2002/상욱-2주차 . . . . 2 matches
Random rand = new Random();
public int randomNumber_1() {
public int randomNumber_2() {
return (randomNumber_1()%3)-1; // -1 is left, 1 is right.
return (randomNumber_2()%3)-1; // -1 is up, 1 is down.
- RandomWalk2/서상현 . . . . 2 matches
파이썬으로 개발함. 7/1 밤 11시부터 1시까지 3시간. 중간에 ["RandomWalk2/질문"]. 7/2 다시 30분간 수정. 다시 질문. 답변을 받고 몇군데를 다시 고쳐서 업로드함.
누덕누덕 기워 끝가지 간 소스는 [http://my.netian.com/~sshiskom/file/python/walk.py 여기]에.
해스켈로 시도. [http://my.netian.com/~sshiskom/file/haskell/walk.hs 소스].
- STL/vector/CookBook . . . . 2 matches
* vector로 간단히 해결이 가능하다. See also ["RandomWalk2/Vector로2차원동적배열만들기"]
- ACM_ICPC/2013년스터디 . . . . 1 match
* Consonants, Pogo, The Great Wall
- VendingMachine/재니 . . . . 1 match
''클래스 수가 많아서 복잡해진건 아닌듯(모 VendingMachine 의 경우 Requirement 변경에 따라 클래스갯수가 10개 이상이 되기도 함; 클래스 수가 중요하다기보다도 최종 완료된 소스가 얼마나 명료해졌느냐가 복잡도를 결정하리라 생각). 단, 역할 분담할때 각 클래스별 역할이 명료한지 신경을 쓰는것이 좋겠다. CoinCounter 의 경우 VendingMachine 안에 멤버로 있어도 좋을듯. CRC 세션을 할때 클래스들이 각각 따로 존재하는 것 같지만, 실제론 그 클래스들이 서로를 포함하고 있기도 하거든. 또는 해당 기능을 구현하기 위해 다른 클래스들과 협동하기도 하고 (Collaboration. 실제 구현시엔 다른 클래스의 메소드들을 호출해서 구현한다던지 식임). 역할분담을 하고 난 다음 모의 시나리오를 만든뒤 코딩해나갔다면 어떠했을까 하는 생각도 해본다. 이 경우에는 UnitTest 를 작성하는게 좋겠지. UnitTest 작성 & 진행에 대해선 ["ScheduledWalk/석천"] 의 중반부분이랑 UnitTest 참조.--["1002"]''
- 고슴도치의 사진 마을처음화면 . . . . 1 match
[http://www.cs.cmu.edu/afs/cs.cmu.edu/user/avrim/www/Randalgs97/home.html Randomized Algoritms]
Found 15 matching pages out of 7557 total pages (630 pages are searched)
You can also click here to search title.