Presentation is loading. Please wait.

Presentation is loading. Please wait.

Purpose of CodeFights Prove that You are better developer. Testers sometime win as well… Coding can be fun too.

Similar presentations


Presentation on theme: "Purpose of CodeFights Prove that You are better developer. Testers sometime win as well… Coding can be fun too."— Presentation transcript:

1

2 Purpose of CodeFights Prove that You are better developer. Testers sometime win as well… Coding can be fun too.

3 History

4

5 Supported languages Java PHP C# Javascript (Node.js) Python More to come…

6 Basics Single Fighter Class 3 actions per Move (Round) Attacking / Blocking Order doesn’t matter 150 hit points

7 Attack areas and Points Area::NOSE – 10 pts Area::JAW – 8 pts Area::BELLY – 6 pts Area::GROIN– 4 pts Area::LEGS – 3 pts

8 MyFighter Class Class must be implemented according to example in SDK Method makeNextMove must return Move object Each round makeNextMove is called with these params: opponentsLastMove (except first round) myLastScore opponentsLastScore

9 Move API addAttack(AREA::X) addBlock(AREA::X) getAtacks() getBlocks()

10 Sample Class

11 Node.js fighter

12 Points calculation (1) Attack Nose Attack Groin Block Legs +10 pt+4 pt 14 pt 0 pt Block Groin Attack Legs 0 pt+3 pt 6 pt +3 pt

13 Points calculation (1) Attack Nose Attack Groin Block Legs +10 pt+4 pt 10 pt 0 pt Block Groin Attack Legs 0 pt+3 pt 0 pt +3 pt

14 Points calculation (2) Attack Groin Block Nose +4 pt 8 pt 0 pt Attack Nose Attack Jaw Attack Belly +10 pt+8 pt 24 pt +6 pt

15 Points calculation (2) Attack Groin Block Nose +4 pt 8 pt 0 pt Attack Nose Attack Jaw Attack Belly 0 pt+8 pt 14 pt +6 pt

16 JAVA Requirements: JDK 1.7 Simply execute build.bat or build.sh

17 C# Requirements: runs on mono 3.2 Build sdk’s project exe

18 PHP Requirements: PHP 5.4 CLI php.ini has phar.readonly flag set to false Command line: php box.phar build Or simply execute build.bat or build.sh

19 Node.js Requirements: Node.js 0.10.x. Install Node.js package: npm install codefights.net [-g]

20 Python Requirements: Python 2.7 Install Python package: pip install codefights easy_install codefights

21 Try it! Command line php my-fighter.phar java –jar my-fighter.jar my-fighter.exe node my-fighter.js python my-fighter.py Fight manually (--fight-me) Fight against sample bots Kickboxer and Boxer (-- fight-bot ) Enroll Your fighter to tournament!

22 Grab SDK and prepare fighter for tournament! Website: codefights.net


Download ppt "Purpose of CodeFights Prove that You are better developer. Testers sometime win as well… Coding can be fun too."

Similar presentations


Ads by Google