Giter Site home page Giter Site logo

code-club-twothirds-challenge's Introduction

2/3rds of Average Challenge for Code Club!

Welcome code club 2022! The first challenge for this year is a simple (or maybe not so simple) game. Players simultaneously select a real number between 0 and 100, inclusive. The winner of the game is the player(s) who select a number closest to 2/3rds of the average of numbers chosen by all players.

This project comes with 4 template bots: AlwaysOne, ImitateWinner, RandomGuesser, and RandomUnderTwenty. For making your own bot you can duplicate one of these templates and delete the code inside of the methods or you can make a new class that implements strat (or if you haven't taken CS, just use the first method).

To test your bot go to the Play class, where you see all the bots being initialized initalize your bot in the same manner (so for example if I had a bot called my bot I would type: Strat player5 = new myBot();), then add your bot to players (for example typing players.add(player5);), finally run main and a display should pop up.

Please put your name as the name of the bot (i.e. AlexanderNanda).

We also are offering for you to describe us a srategy (if you are unsure how to implement it) such as "pick the number 7 every time" or "use 2/3rds of the winner's guess last time."

If you have any questions at all please reach out to Alex ([email protected]), Tiko ([email protected]), Cory (wuc24@.....) , Grace (luog23@....) , or Jim (phiefferj24@....)

code-club-twothirds-challenge's People

Contributors

askjag07 avatar

Watchers

 avatar

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.