stephaniesoldavini / cluedunit Goto Github PK
View Code? Open in Web Editor NEWA command line interface to play the game Clue.
License: GNU General Public License v3.0
A command line interface to play the game Clue.
License: GNU General Public License v3.0
Because some rooms have two doors on the same wall, up/down/left/right isn't specific enough for leaving a room. Instead, the doors will be numbered and the number will be used as the movement "direction".
The doors are numbered in order from top to bottom, left to right.
This needs to be implemented into genBoard.py so that the indices of the adjacency list of a room are the door numbers (or index + 1 = door number, depending on if we want a door number 0).
The door numbers will either be hard coded into the ASCII map or dynamically printed at the doors at runtime. Dynamically would be less prone to mistakes.
Write three separate AI files and import the correct one using "from ai file import as ai" . Ai file is the difficultly selected by the user
Take a location and a character and print the character (e.g. 'PL' for Prof Plum) at the location on the ASCII board in the terminal. Will need to handle room placement, which ideally will place the character at a random spot in the room that doesn't interfere with the room name, secret passages, or door numbers.
Make an ant trail when the player is forming their movement across the board. For example as the player types '1wwdd' an x would appear outside of door 1, in the space above that, in the space above that, in the space to the right of that, and in the space to the right of that (an upside down L shape). If they backspace, the xs would get removed.
Make passage corners blink if the move is to go thru a passage.
Need a way to make coordinates conceptually clear.
If the terminal window is not big enough to view the board, ask the user to resize their window/adjust font settings so enough rows and columns are present.
This function will take in a char representing a move, a starting location, and will output an ending location.
The char input will be one of the following: w (up), a (left), s (down), d (right), p (passage), or a numeric representing a door through which to exit a room. In the case of the command line ASCII board, the char will be the user's input directly. If another controller is implemented, the control input will be converted to the corresponding char for processing by the function.
This function is intended to be called in a loop over a string of input representing a player's entire dice-roll-length move.
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.