oglimmer/citybuilder

View on GitHub
server/rule_player.js

Summary

Maintainability
A
1 hr
Test Coverage

Function playCard has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Player.prototype.playCard = function(cardIdToPlay,targetFieldId,onSuccess,onFail) {
    // check if player is able to deploy a card this turn
    if(this.availableActions & 1 == 0) {
        logger.debug("[playCard] availableActions="+this.availableActions+", return from playCard");
        return;
Severity: Minor
Found in server/rule_player.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status