GithubHelp home page GithubHelp logo

sidhiadkoli / match-up Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 16.0 1.48 MB

Simulator for COMS 4444 Programming and Problem Solving (F2018)

Makefile 0.20% Java 94.51% JavaScript 3.50% HTML 0.96% Python 0.84%

match-up's Introduction

Project 1: Match-up

Course: COMS 4444 Programming and Problem Solving (F2018) Uni: Columbia University Instructor: Prof. Kenneth Ross TA: Sidhi Adkoli

Steps to run the simulator:

  1. make compile
  2. Update the make file with participating groups.
  3. make run OR make gui

This project belongs to Columbia University. It may be freely used for educational purposes.

match-up's People

Contributors

sidhiadkoli avatar erziebart avatar lastremote avatar shandu-m avatar zhjch05 avatar wanlinxie avatar sychen23 avatar warrenmo avatar chengxuhawkwood avatar wolszhang avatar quincymeng avatar mes2311 avatar dorishyc avatar frank4120 avatar vaiv avatar soybean avatar ide2106 avatar chinmay41018 avatar luc-liu avatar surabhibhargava avatar k-patton avatar andrewquijano avatar debug-thebug avatar

Watchers

 avatar

match-up's Issues

opponentSkills not working & always home team in a game

In matchup.sim.Simulator:95-96, we should have information about the other team's skill levels rather than our own.
Swapping skillsB and skillsA works:
game.playerA.distribution = playerA.getDistribution(skillsB, isHome);
game.playerB.distribution = playerB.getDistribution(skillsA, !isHome);
Also, I am encountering some issues in some games (after the first one) where one of the players will play as the home team twice: (error log below)

Starting game with players random, g7
Player random skills are [11, 8, 9, 3, 9, 6, 10, 3, 1, 1, 1, 11, 11, 4, 2]
Player g7 skills are [1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 8, 9, 9, 10, 11]

Home: g7, Away: random
Player random distribution is [[3, 4, 11, 9, 1], [9, 6, 1, 1, 11], [2, 8, 3, 10, 11]]
Opponent skill :[11, 8, 9, 3, 9, 6, 10, 3, 1, 1, 1, 11, 11, 4, 2]
Player g7 distribution is [[11, 10, 8, 6, 4], [9, 7, 5, 3, 1], [9, 8, 6, 2, 1]]

Round 1
Player random round is [9, 1, 4, 11, 3]
Player g7 round is [3, 5, 7, 1, 9]
Score: random 2, g7 3

Round 2
Player random round is [11, 1, 1, 9, 6]
Player g7 round is [1, 2, 6, 8, 9]
Score: random 1, g7 2

Round 3
Player random round is [11, 8, 2, 10, 3]
Player g7 round is [10, 11, 6, 4, 8]
Score: random 1, g7 3

Total score: random 4 g7 8

Home: g7, Away: random
Exception! Index: 4, Size: 0

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.