thinkmill / code-challenge Goto Github PK
View Code? Open in Web Editor NEWMonthly code challenges
Monthly code challenges
code-challenge/201808/index.js
Line 588 in d9f2e74
Should be skipAction = true;
instead of return
after the Penalty
Would be great to give each challenge a name, and use that in the name of the challenge's folder. It makes walking the project from the command line nicer.
Pls close if you donotwant this.
To make an informed decision on the bot side we need to give the counter action to the bot inside the OnCounterActionRound
.
Hello!
Is there a reason we're doing selection sort
and merge sort
, rather than some other flavour like bubble sort
?
code-challenge/201808/index.js
Line 351 in d9f2e74
The code currently has foreign-aid
as an action which can be challenged, but not countered. It should be the other way round.
if( action === 'taking-3' || action === 'assassination' || action === 'stealing' || action === 'swapping' ) {
const cards = {
'taking-3': 'duke',
'assassination': 'assassin',
'stealing': 'captain',
'swapping': 'ambassador',
};
const _hasBeenChallenged = this.ChallengeRound({ player, card: cards[ action ], action, type: 'challenge-round' });
if( _hasBeenChallenged && _hasBeenChallenged !== 'done' ) {
return;
}
}
if( action === 'assassination' || action === 'stealing' || 'foreign-aid' ) {
const cards = {
'assassination': 'contessa',
'stealing': [ 'captain', 'ambassador' ],
'foreign-aid': 'duke',
};
The bots currently only get name and coins. Also need card count.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.