This is an old revision of the document!
- Preparation
- Operating Systems:
- Programming Languages: JAVA
- Important Documents:
- How to Build Your Own Controller (Eclipse - 32bits windows7 / Helios sr2 , JAVA)
- Step1) Install
- Download eclipse from http://eclipse.org
- [File] → [New] → [Other] → [SVN]
- Choose 'Checkout projects from SVN' and Press “Next”
- Enter [http://marioai.googlecode.com/svn/trunk] as a repository
- Once again, press [http://marioai.googlecode.com/trunk] and “Next”
- [Java] → [Java Project] and “Next”
- Project Name as 'MarioAI'
- In 'Inclusion' Window, press 'Add' and enter [“.lvl” “.dat”] and finish
- Finish
- Step 2) Configuration and Build
- In the Project Tree Structure, Choose SRC folder and [right mouse button click] → [Build Path] → [Use as source folder] → [OK]
- [Project] → [Build All]
4. 실행
위의 과정을 착실히 수행해 왔다면, [Run] → [Run Configurations]눌러 창을 연 다음
[Java Application] → [New Launch Configuration]을 선택한 상태에서 'Main'탭의 'Main class'를 찾아 다음과 같이 입력한다
'ch.idsia.scenarios.Main'
그 뒤 'Run'을 누르게 되면,
축하한다. 콧수염 배관공이 하늘에서 떨어지는 것을 볼 수 있을 것이다.
(현재의 모드는 매뉴얼 모드로 A키로 불꽃, S키로 점프를 할 수 있으며, 십자키로 콧수염 아저씨를 움직일 수 있다.)
5. AI 실행
AI를 적용하여 실행시키기 위해서는 뒤에 옵션을 추가로 정해주면 된다
다시 [Run] → [Run Configurations]를 눌러 창을 연 다음
'Arguments' 탭을 열어 'Program arguments'에 다음을 추가해 보자
'-ag ch.idsia.agents.controllers.ForwardJumpingAgent'
그 뒤 'Run'을 누르게 되면, 자기 혼자서 달려나가는 콧수염 배관공 아저씨를 볼 수 있을 것이다. (다른 컨트롤러를 사용해보고 싶다면 프로젝트 트리의 src→ch.idsia.agents.controllers 하위에 있는 컨트롤러로 바꿔보자.)






