GithubHelp home page GithubHelp logo

jit_cup's Introduction

JIT CUP

thumbnail


JIT or Just In Time is a fun, adventurous coding competition where we tend to compete programs against each other. So, If you think you can win, take on a challenge.

Somewhere in Danville

Dr. Doofenshmirtz has had enough of the unbearable heat and decided to freeze all the ocean's water. The reason remains unknown, but fortunately, Agent P has arrived at the scene to prevent this catastrophe.

Doofenshmirtz has deployed 5 underwater ships that will freeze the ocean water. Your mission, Agent P, is to locate all these ships before it's too late. Additionally, to unfreeze the ocean, you'll need to deploy 5 of your own ships in such a way that the evil Dr. Doofenshmirtz won't find them.

Good luck, Agent P! The fate of the ocean rests in your hands.

Deploy Ships

To begin, deploy 5 of your own ships. These ships come in different sizes and can be placed either horizontally or vertically, but not diagonally.

- Carrier: 5 cells
- Battleship: 4 cells
- Cruiser: 3 cells
- Submarine: 3 cells
- Destroyer: 2 cells

thumbnail

Locate Ships

This is a turn-based game. Each turn, you'll need to guess a cell where the opponent's ship might be hiding. The player who guesses all opponent ship cells in the fewest guesses wins.

thumbnail

Where's Perry?

Perry will assist you in writing a program that prints a single coordinate during your turn, indicating where a ship might be located. You can write this program in C, Rust, C++, Java, Python, or JavaScript.

GUIDELINES TO FOLLOW

To participate you must follow the flow.

  1. Make a git repo
  2. Have the following folder structure
  3. Submit the repo URL to participate

Folder Structure

|──INFO (MANDATORY, should be a file without any extension. i.e no .txt)
|──README.md (optional)
|──main.c (Naming it main is MANDATORY)
|──GRID (MANDATORY, should be a file without any extension, Will contain your ships deploy info)
|──folder1/ (Example, You can have helper things)
|  |──helper.c

INFO must contain two things,

- YOUR NAME 
- LANGUAGE YOU USED

GRID must contain 100 lines. Since we will have a 10x10 grid
For example, Suppose you had a grid size 3x5. Then the GRID file will read as follow.

If this is your layout

- * - * *
- * - - -
- * - - -

Then this is your GRID file

2: [(1, 4), (1, 5)]
3: [(1, 2), (2, 2), (3, 2)]
... and so on for all the remaining ships. (we have 5 ships in total in our 10x10 grid)

You will have to design your grid file using the link that will be provided soon or you can make it you're self. Make sure you have this GRID file in the repo. Also locating any ship diagonally will result in disqualification for that bot.

WHAT SHOULD THE CODE LOOK LIKE

Just write code for a single-turn. You could store your position in a file and then read again in the next turn and make decision. Your code will take in 2 arguments from the commandline. These args are as follow:
- ACKNOWLEDGEMENT - SHIP_INFO

Your code should print to stdout a specific coordinate in the format "X Y", where both X and Y range from 1 to 10. Both X and Y start from 1 and go till 10. So for example the output could be "1 5" or "9 3". If a bot repeats a co-ordinate twice, It will get disqualifed and the opponent will score 1 point

1st arguemnt, ACKNOWLEDGEMENT will tell you about weather in the last round the specified co-ordinate by you were correct or not by saying either "HIT", "MISS" or in the case of very first round "NONE".

2nd argument, INFO will let you know which ship has sung. in case if you're had guessed all the cells of a ship with 3 cells you will get 3 in the arg. if the next ship that you completely destory was of 2 cells then the second argument will read 2 and so on until you destroy all the ships. the second arg will say NONE for all those rounds in which no ship has been destroyed.

$ ./main ACKNOWLEDGEMENT SHIP_INFO

Tournament Type

This Tournament will be of a single round with each of the player bots. At the end one who has most points wins.


Join us over on the discord server https://discord.gg/rsgg59FR

jit_cup's People

Contributors

arhantalwar avatar tusqasi avatar amodmanjarekar avatar

Stargazers

 avatar  avatar  avatar Manmath Hatte 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.