Code Monkey home page Code Monkey logo

hero-starter's Introduction

Build Status

JavaScript Fight Club - Hero Starter

Getting Started

If you are anxious to join the fight, all you need to do is fork this repo and sign in to the game. It's that easy.

You must know a little bit of Git to get started. If you already know it, skip to step 3.

Steps

  1. Install Git.
  2. Learn to fork.
  3. Fork this repo so you have your own hero-starter.
  4. Enroll your hero by signing in to the JavaScript Fight Club game.

Changing the Hero

Basic Skills

This game is played by writing JavaScript code. If you have never used JavaScript before, the following resources can help:

Making Your Hero Smarter (or not)

If you take a look at hero.js, you will notice that there are different move functions. Each function describes a specific type of hero behavior.

  • The Northerner cares about moving North... all the time.
  • The Blind Man moves randomly around the board.
  • The Unwise Assassin only cares about killing other players, possibly to his own demise.
  • The Careful Assassin goes after other players as well, but cares more about his health than the "Unwise Assassin."
  • The Safe Diamond Miner cares about mining diamonds and making sure he or she is alive at the end of the game to enjoy the wealth.
  • The Selfish Diamond Miner cares about mining diamonds, but will also capture his own team's diamond mines.
  • The Coward will find the nearest health well and stay there.

If you want to try something different, change the move toward the bottom of the file and try it out. You can save your changes and push them back to Github (readying your hero for the next battle) or you can test the change locally to see if that's how you want your hero to behave.

Once you get acclimated to the different types of heroes and think you want to give writing your own hero a shot, try altering some of the code. You might ask yourself:

  • What if my miner waited longer before going to a health well?
  • What if my health nut was aware of where the nearest enemy was and tried to keep away?
  • Can I change my aggressor to became a berserker?

The possibilities are endless! Go crazy and change your hero however you want. Just remember to track your changes with Git.

If you are looking for even more of a challenge, take a look at the helpers.js file and begin picking apart our helper methods. Is there any way you could adapt our path-finding algorithm and use a variant in your hero.js file? What other helper methods should be available to your hero that we did not include?

Your hero has the potential to behave in any way you decide. Every change you make could alter the outcome of the game. You can be a lone wolf or a team player. You can heal or you can hurt. It is all up to you.

Testing and Training

You can still test your hero code locally! After you have Node.js installed, there are two ways to do this:

Option A: Check for code errors

On the command line, navigate to your hero code directory, and type the following commands:

npm install
npm run sanity

If the tests pass, your code doesn't have any obvious errors.

Option B: Have a test battle

Running the battle

On the command line, navigate to your hero-starter directory, and type the following command:

node test-battle.js

This will run a test battle of only 15 turns which takes place on a 5x5 game board against a single enemy. The script will output what the board looks like at each turn, and the moves your hero tried to make.

More Options

You can modify how the test battle runs by passing the following options:

Flag Description
--help output usage information
--wait Turn by turn step through of the battle
--turns Specifies how many turns to run

Understanding the output

  • Your hero will be denoted by the code "H00".
  • The enemy will be denoted by the code "H01".
  • Diamond mines will be denoted by "DXX" where the Xs are numbers.
  • Health wells will be denoted by "WWW".

Can I commit changes to the test script?

Absolutely! We only use your hero.js and helpers.js files for the live game, so feel free to do whatever you like with the rest of the files.

Game Rules

Win Conditions

The game is decided in one of two ways:

  1. A team eliminates all of the other team's heroes or...
  2. After 1,250 turns, a team collects the most diamonds.

Turns

These are the events that occur in one hero's turn, assuming the hero has some health left:

  1. We take the direction that your hero wants to go (ie - the direction that your move function returned) and ask if it is a valid coordinate. If it is, we move your hero to that tile. If not, your hero stays put.
  2. If the tile your hero wants to move to is...
    • ... unoccupied, your hero moves on to that tile.
    • ... a fallen hero, your hero will steal their soul.
    • ... a diamond mine, then your hero will capture the diamond mine, but will not move on to that tile. Additionally, your hero will receive 20 damage because diamond mines are perilous.
    • ... a health well, then your hero will receive 30 health, but will not move on to that tile.
    • ... an enemy hero, then your hero will deal 10 damage to the enemy hero, but will not move to that tile.
    • ... a friendly hero, then the friendly hero will receive 40 health, but your hero will not move on to that tile.
  3. If your hero is still alive after moving, then your hero deals 20 damage to any enemy hero on an adjacent tile. This is in addition to the specific damage done by moving directly into an enemy.
  4. After this, your hero's turn is over and we increment the game's turn and move on to the next hero.

hero-starter's People

Contributors

abensur avatar adnrs96 avatar asuza avatar e-jigsaw avatar forrestbthomas avatar gaynullindima avatar germ13 avatar gjtrowbridge avatar s-espinosa avatar tenshi13 avatar themgt avatar tlent avatar yahkob avatar yobert avatar zigrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hero-starter's Issues

Show whether the player won or lost

When running the test-battle.js script, it doesn't show if the player won or lost the game. Inspect the game object to determine how to show that information, and add it to the output (after the loop).

jsfight.club opening day announcement (Javascript Battle, group 5)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @dcbdmb @krontill @CristianoCarvalho86 @sb613 @sifgar @amartell @allknowingfrog @etmarch @mfsousa @demyanrogozhin @smat @lgroner @Torrion @ericblade @Saturate @benperiton @cuong88pham @cyberboy1551 @matias49 @jb613 @hackmaverick @ta13 @maxired @jhulme @DarkoKukovec @squaretone @nunonunes @jocull @ta12 @nthrnth @widarlein @chlorophyllenvy @ranit8 @rpaillan @sunny-g @con- @amacfie @kelvin1a2 @kainlite @WirthAware @kwerle @pndpo @zerosurfer @markbradford @alanirudh @abijahlynn @mistirrin @vorear @jrotolo

jsfight.club opening day announcement (Javascript Battle, group 2)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @hazard11294 @ashemath @josephchin @ZMBSMaster @Erendii @ceg692001 @beetee2 @cjdell @rhndg @salamap @mruebush @tarkez @shubhdev @jamiecollinson @nguyen504e @Dark-Hippo @Crisheight @Xelipho @aveloso4 @CGowdy @vishalgoel2 @JWNS @guyius @szymonc @kwaller @Alwaysthird @koustuvsinha @amirkhanaursrk @Tarasulia @MisterCoolMarc @ninja999 @KhalidGit @Fabracoder @praveenax @miserEBlade @RibaDev @sirlimpy @winslayer @GMc14 @rafaels88 @XoXzz @samternent @rrogerscg @gregryman @rcholic @JacobBaize @AlexCarlstrom @Jayh106 @sp90

soycode - error during game run

@soycode, please note the following error that occurred during the game today.

TypeError: helpers.safetyCheck is not a function
    at Object.helpers.findSafestHealthWell (soycode_helpers.js:205:18)
    at move (soycode_hero.js:191:24)

I don't have more information to give you about why it happened. Good luck!

Replace game_logic with ai-battle-engine module

Install the ai-battle-engine repo as an npm dependency and replace all code referencing the game_logic folder to instead use the newly-added npm module "ai-battle-engine".

Make sure to remove the game_logic folder when done, run tests with npm test and run the linter with ./node_modules/eslint/bin/eslint.js test-battle.js, and of course, ensure the test-battle.js script functions properly.

jsfight.club opening day announcement (Javascript Battle, group 7)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @zoemccarroll @sugardave @fredericksilva @horacix @metaprinter @ArcanisCz @argo49 @mateoclarke @ryanstephenson @becuz @sagarjauhari @kiperz @JediMindtrick @IsmiKin @patricidio @wileam @FlashBlack @tristanperalta @hopgal @jaeh @tielur @barry-m @noel1uk @wogsland @aniri @SimonPrs @agoole @wjzijderveld @wmadden @Sianide4000 @cdharris @kristiansaarela @Hitman666 @nehaQ @st15jap78 @pretagreg @objectfoo @deschaefer @flav @Alfredo-Delgado @jaredor @reedwade @jwalsh @cnewell @markengle @hatbro @zipi @pydsigner @wooliet

jsfight.club opening day announcement (Javascript Battle, group 12)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @achakravarty @dkroy @mehtayash @antoarundominic @badalex @akjones @simonlee @foofygoofy @jakozaur @rishiag @Exclamation @okonomiyaki3000 @alaindomissy @MrDesjardins @kk2170 @worldwar @keithxm23 @amprokop @jvonspreckelsen @sananaamir @NameAlias @tianshuo @hsbakshi @Farer @Mdonmounts @selbyk @huytd @perturbo @evanyeung @t0pth4t @bzsamus @jamesjnadeau @ryandbair @Fyzxs @takyam-git @thecoderswife @itga @dremex @anthonyd1988 @dugword @jessaustin @Sifawm @nkofi776 @kevin521 @smokinjoe @dkarzon @yobert @karlis @THEtheChad

jsfight.club opening day announcement (Javascript Battle, final group)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @egdirbt @GRTrowbridge @gcpang @albreyb @wcjohnson11 @jadenlew @Grimi94 @alexanderGugel @jakecadams @tkpatterson @KiaFathi @Imti @hackystack @jasenlew @jamesyothers @gjtrowbridge @flinkware @forrestbthomas

Balancing issue

Hello,
I've noticed that the first player wins in majority of the cases, all other things being equal.
I've downloaded the script and tried to run a few test battles with various settings, adding mines to random places etc, adding more heroes and similar. As long as we're down to the same hero types, the first team on the move wins out majority of the cases. If I randomize the mines and wells but still use the equal heroes, we get consistent result (you either win them all or lose them all.

That sounds like an unfair advantage to the team who moves first. Is there something else I'm missing here? How is the first move decided in "real" battles? What else can we do regarding this?

Allow the user to step through the battle turn-by-turn

Allow the test-battle.js script to be given an argument to pause the game each turn.

The script would run normally (and play all the turns) when not given arguments.

When started like node test-battle.js --wait, have the script wait for the user each turn. The output might resemble this:

-----
Turn 10:
-----
MyHero tried to move South
MyHero owns 0 diamond mines
MyHero has 100 health
|---|---|---|---|---|
|   |   |   |   |   |
|---|---|---|---|---|
|   |   |   |   |   |
|---|---|---|---|---|
|   |D00|WWW|D01|H00|
|---|---|---|---|---|
|   |   |   |   |   |
|---|---|---|---|---|
|   |   |   |   |H01|
|---|---|---|---|---|
********

Press ENTER to continue...

It would be nice if when using the "wait" mode, the previous turn's map would be cleared away, showing only one turn at a time.

jsfight.club opening day announcement (Javascript Battle, group 9)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @zacwasielewski @bmeck @chchrist @pmatos @sergiofreitas @danielstern @zumot @PsychosisGaming @maxpv @zladuric @ocowchun @wwalmnes @Xunrel @vidmar @slotab @KristenGarnier @klaascuvelier @korvin0 @MBing @Marak @bankair @curtiszimmerman @demsey2 @jamiepg1 @baldeagle072 @lukencode @fblackburn @polyslush @OsGio @edegilson @DanRaine @tstein4 @Emuentes @shaunstanislaus @phimuskapsi @Kokan @Lasvad @drewbuschhorn @ecwyne @mcquinne @kt3k @evandrododo @radius314 @bsparks @Jacapo @joelalejandro @gorillatron @sideroad @josex2r

jsfight.club opening day announcement (Javascript Battle, group 13)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @FaideWW @ModernLoftArt @themgt @LKNNKL @mdgrech @seasoup @toblender @ckihneman @simook @nt591 @givanse @dmullings @jimfleming @zeevl @awolden @adamatus @erikb85 @lazybean @johnbarnitz @teihoata @SuetyDig @FigmentEngine @dverma @sted @jheuer @bwalker8038 @russellrain @nickelkr @jchristo4 @Thomas88 @iamthechad @over9001 @roneesh @taylorharwin @jazzychad @cwgreene @dsibilly @JLevstein @martindale @berodam @patricknboyd @TomAnthony @thebergamo @stale2000 @fstoerkle @rjstreet @JamesLaskey @m3mnoch @TheSisb

Fix linting problems with test-battle.js script

The test-battle.js file has several linting issues. From the command line (while in your local hero-starter directory), issue the following command after running npm install once:

./node_modules/eslint/bin/eslint.js test-battle.js

The lint errors shown need to be fixed.

jsfight.club opening day announcement (Javascript Battle, group 3)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @huangweijin @kanibalTeam @dormors @elliotsegler @ijemmy @Senade @renatoagomes @linderino @Techser @midnigtoil @KOovi @ftyszyx @noVerity @Khazl @vinicius5581 @Leojino @CHASESY @DimitarRuskov @dennishay @pp86 @flodub @fuzzylogic666 @kinquela @luke1smokey @loaru @mattogodoy @rkho @zhengcano @brandonidas @jonathanobino @ET-CS @kopijunkie @axm @siunegu @peter-vasarhelyi @emartinelli @portgasd666 @samuelhayashi @omarolabi @KwaKao @davidpractice @evonia @oglynxr @DrewDrinkwater @salcombeweb @jameshaddrill @krfowler @DavideArgellati @Unf-Sander

allknowingfrog - error during game run

@allknowingfrog, please note the following error that occurred during the game today.

Error: Script execution timed out.

This happened because your hero took more than 3 seconds to run, but I don't have any other info. Good luck!

jsfight.club opening day announcement (Javascript Battle, group 4)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @Justin0520 @mikemols @KapitanOwies @jaysmoon @benasradzevicius9404 @Vladysanta @unreturnable @rjames93 @mxalfrod @liam-hall @nascarjake @nklunder @Polyrhythm @JohnnySantiagoJr @fabioguarrasi @PMPepper @stuarteske @j-meyer @Tony-Stark @user464091 @ryanhellerud1 @cspy @JesseBlue-ish @jkrehm @pollardld @johnjenkins @TaylorHuston @kdulep @orlando @zoibot @ronfe @kaithrogers @michalweiser @Tempus35 @dukec3 @pgedgaud @rolandbobek @ripptorr @bluemini @Pantazi14 @rnwightman @stalleyg @genesiscreation7 @7Ds7 @wrietersco @jdrucza @ercanezin @DerpingSniper @riahk

jsfight.club opening day announcement (Javascript Battle, group 11)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @ryschwith @kongxinga @beagleknight @suddonm @fernandocanizo @Rickinio @T-Alexander @claeszombie @bolint @juwain @roman01la @VagabondEx @rickyhopkins @delagreytho @djanix @yorchv @frequ @brodavi @jarvys @Jtupiter @bigfish8jonah @nickkees @stevep @vcsala @blairmotchan @fffffffffffffffffffff @Gelios @cainejunkazama @arvinsim @MSylvia @kaezarrex @harishbsrinivas @broguinn @hellfire1470 @numb3r33 @montanaflynn @Guik @ykorman @vzaardan @pocotan001 @tildedash @dthtvwls @casarock @lantto @akmrak @anuragpeshne @iwantdavid @finger-dancing @mweibel

amacfie - error during game run

@amacfie, please note the following errors that occurred during the game today.

TypeError: helpers.findTile is not a function
    at moves.custom.balanced (amacfie_hero.js:265:22)
TypeError: helpers.findTile is not a function
    at moves.custom.balanced (amacfie_hero.js:288:22)
TypeError: helpers.findTile is not a function
    at moves.custom.balanced (amacfie_hero.js:302:20)

I don't have more information to give you about why it happened. Good luck!

jsfight.club opening day announcement (Javascript Battle, group 10)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @fabiokr @stanica @christianalfoni @KwangMin1108 @aquilax @pablote @joelrotelli @lukaMis @serginator @j3lte @alenoir @lovethebomb @warusun @torii @pitgrap @bicccio @semmelkrum @netzzwerg @kai-zoa @martin-sachse @nathandarmawan @tsvetomirnik @fbenoit @myagoo @surtich @xgeot @subtraktive @iamhitarth @SixPenny @ritwik @dryamvlad @watilde @pjensen68321 @kaushikkokke @danalldredge @jefflam @tehknox @shmeeps @kaz0636 @micahlmartin @elbowdonkey @billingb @hurrymaplelad @Gaelan @ackzell @majecty @e-jigsaw @soycode @dunkatron

Add a "balanced" AI example

hero.js contains several examples of various strategies that the player's hero could use. Develop a simple "balanced" strategy to include as an example.

This could be as simple as being an "aggressor" one turn and a "priest" the next. Since it is only an example, it should not be very complex.

jsfight.club opening day announcement (Javascript Battle, group 6)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @zdlopez @johnTurknett @mkoczka @brachman @dwscollab @tiedyepanda458 @cgriffith99 @chinezu57 @L1NT @myrddincat @sergiufalcusan @p3d @ljamt @adamkpurdy @robinkruyt @BelknapKristine @Meatmongrel @CriticalThunder @dslaugh @eamonwoortman @kingbalan @simonpeters @risingfruition @tjpeden @otiele @ilumin @tkill456 @hnq90 @TheSench @dschaffe @jorgecas @AllanIdalen @fewagewasd @arhuman @DavidTheMedic @stdr @cmcdevitt @evanworley @win-wo @timafield @pajtai @alliestone2010 @JamieGeddes @lauralorenz @lucasmonteverde @GauthierD- @kbristow @germ13 @temsa

jsfight.club opening day announcement (Javascript Battle, group 1)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, @gjtrowbridge stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

/cc @kromitj @code4jhon @Sag0Sag0 @jdtech3 @Androguide @Xlander11 @bmbeverst @chrissar @vinoth-sarsha @CryfaNevada @juliengalvanN @shubhamg21 @CihanNinja @bashooka @saiberz @cxrlospxndo @victorzimmer @c-bik @Liberator9000 @Whatzhub @cgordon99 @deanhigh @m0ose @Fabreeze23 @SnakeBite89 @davmillar @thannous @JSnagg @aleclofabbro @lokeshgahlot @TheKnarf @shengovou @rwebler @josephscott @ninjabunny @skeols @arielpires @aramisf @omoindrot @cjbarth1 @mekocher @darrylblake @RiderSargent @philippnagel @enutts @papkie @torchhound @furuskog

jsfight.club opening day announcement (Javascript Battle, group 14)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @rathnid @evandrix @njj @chaconnewu @waldronj @octatone @robertg @moonthug @coreymaher @Caveat4U @ede-n @MeghV @amvieites @itsbth @ryandagg @rpasta42 @victorbjelkholm @jjmason @uu8 @Jks15063 @drhayes @bspaulding @msluyter @cacois @samuel-mccallum @Naseer90 @adams @twysto @lpappone @ianstalter123 @andrody @cbrahmer @cgrinaldi @donkawechico @lramsey @adrichman @SterlingVix @zzmp @topher515 @aesprice @craftjk @Gabs00 @lievnano @browles @atungare @wlabranche @paulyi326 @rgoldfinger @sbonebrake

jsfight.club opening day announcement (Javascript Battle, group 8)

TLDR; https://jsfight.club brings back everything you loved about JavascriptBattle.com. Join the fray!

Welcome, everyone!

Over a year ago, I found out about JavascriptBattle.com. I quickly became obsessed with trying to make my AI be the best it could be, spending hours tweaking my code and running test battles against myself. I stayed with it for several weeks, until the site no longer loaded. Eventually, it was stated that the site was going down.

Since then (early Oct. 2015) I've been working with @natedsaint to bring it back. We've spent the past year (on and off) tweaking the site, making the game more efficient to run, faster to load, easier to maintain, and giving it a new (but familiar) look.

In short, please join us in bringing back some of the fun that existed with the old site. Bring back your hero, destroy your enemies, and have a blast.

Sincerely,
John

Note: This message is only being sent to users that forked the original "hero-starter" repo.

/cc @mwpeterson @djnesmith @alfredo2 @porkradish @RobBednark @PhilippSteinmann @smug-fiddler @karlosgliberal @SidKuku @chetandhembre @summertek @delaetthomas @spenoir @zSakare @dawsonmike @ildac @nanchenfr @laserapple @Yahkob @wuworkshop @Jthomas54 @jlurgo @pfraces-graveyard @Phantomaize @aaroncarlo @whitcomb @ConstableBrew @s0ren @tylersp7 @lipsumar @yojimbo311 @n17r4m @FlackAP @jtenner @werm @joe-singer @formikaio @RoseMadder @flesler @Nannooskeeska @onlyurei @eqbbpa @codegoalie @hellocreep @scyrizales @BloodHawk @charlenopires @Bandoman @purringlion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.