acenturyandabit / fortknight Goto Github PK
View Code? Open in Web Editor NEWa mini chess battle royale
License: GNU General Public License v3.0
a mini chess battle royale
License: GNU General Public License v3.0
Currently all the achievemnts are lumped together.
Make a button so that users can forfeit their current run.
Arcade mode is fun, but it's way too easy right now!
You can drastically improve the board generation if u just simplify the for-loops in main.js
to
let board = document.querySelector('.board');
for (let i = 0; i < 7; i++) {
for (let j = 0; j < 7; j++) {
let d = document.createElement('div');
board.append(d);
}
}
and in styles.css
you just add
.board > div:nth-child(odd) {
background: black;
color: white;
}
.board > div:nth-child(odd) > * {
background: white;
}
.board > div:nth-child(even) {
background: white;
color: black;
}
.board > div:nth-child(even) > * {
background: black;
}
wich selects all even and odd squares and colors them accordingly.
Then you just need to fix the background of the Start-Button and the background, but thats also an easy fix. Just add something like this in styles.css
to give it a little bit of color and make the button a little bit prettier:
.boardModal {
background: #ccc !important;
}
.boardModal > button {
background: #616161 !important;
color: #ccc;
font-weight: bold;
border: none;
padding: 10px 30px;
border-radius: 25px;
box-shadow: 0px 0px 6px #000;
}
Ive already coded this but i didnt create a commit and pull request but either one who reads this can do it or im gonna do it tomorrow.
Hckf
I want to add a few issue forms so that it will be convenient for new contributors to open issues. I plan to create Bug Report, and Feature Request forms.
The Bug Report issue form will have the following fields
The Feature Request issue form will have the following fields
Currently all the movement for the pieces is in one big file. Instead, it would be nice to have the piece movement code split out into one class per piece.
I would definitely add a license to communicate clearly to other people what they can and cant do with the sourcecode. I would prefer the GNU GLPv3 License
https://choosealicense.com/licenses/gpl-3.0/
or the MIT License if anyone should be allowed to distribute Closed-Source-Versions of it.
https://choosealicense.com/licenses/mit/
Add a set of achievements for n pieces of the same type on the board:
coronation: 5 kings on the board at a time.
parapets: 5 rooks on the board at a time.
cathedral: 5 bishops on the board at a time.
bar fight: 5 pawns on the board at the same time.
barracks: 3 pawns on board at the same time, in non-drunk mode
stables: 5 knights on the board at the same time.
queens
Like normal, but with 3 lives and a timer that causes you to forfeit if you do not move within the time limit.
One large HTML file was great for a concept demo but it's time we broke it up.
Change the achievement render function so that the achievements can be sorted by completion percentage or by category.
Modify achievements.js to add this new achievement.
Make a new gamemode where the pieces can loop around the board.
In the achievement checking system, there is a lot of code repetition. Try and correct this by creating a standard function and layout to reduce code repetition.
Come up with an integration test framework which supports:
Make an achievement that is only obtainable in Drunk mode, where the knight evades a potential capture three times in a row.
Allow the player to use the home keys to control the knight:
Q WE R
A SD F
QA move the knight two left and one up/down;
WE move the knight two up and one left/right;
SD move the knight two down and one left/right;
RF mofe the knight two right and one up/down.
Currently, when on a desktop, going from fullscreen to 50% of screen by width creates a huge chessboard which is difficult to click. Instead, there should be a smaller board with some padding to the edge of the screen.
In Royals mode, only kings and queens will spawn. However, kings cannot move to a square where they would be taken on the next move.
Your free lunch has arrived.
Make a new gamemode where the pieces move randomly all the time, even if they can take the knight on the next turn.
Create an Arcade mode where pieces move based on a timer, instead of in turn with the player. Perhaps the player could fit up to 2.5 moves in each piece move.
Currently, to go from classic to a different game mode, you have to:
I want that to be reduced to 1-2 steps tops, to make it easier for people to check out the other game modes.
Upgrade the achievement modal so that it appears as a smaller modal on top of the screen that fades automatically.
In doing so, also update the n-slayer achievement so that kills where you are killed count towards total kills.
Currently there are two ways of validating achievements: Either the achievement's progress is saved, or the achievement's progress is transient. For transient achievements, the progress bar doesn't show up.
Edit the transient acheivements checking function and associated data so that a progress bar for the acheivements shows up.
Can add configs for formatting (Prettier, for example)?
You can also consider hooks for the git (Husky, for example), when, when pushing, the entire project is formatted to one style or does not allow pushing if the formatting is inappropriate.
This will improve the quality and make the code more uniform.
Steps to reproduce:
This shouldn't be a hard bug to fix! Have a shot.
Create a system that:
Create the highscores page using the fragments set out in the code.
Make a function which, given a square index, checks whether or not the square is safe (if the knight will be taken on the next turn.)
Steps to Reproduce:
Behaviour:
The game will start.
Desired behaviour:
The game should not start unless the user presses 'begin' first.
When you forfeit Arcade mode, the board continues to update.
I think having achievements that pop up whenever you kill multiple pieces in a row, would be a very great and natural addition
Steps to reproduce:
Fix by changing the CSS somehow.
The 1000 steps achievement progress bar can extend past the boundaries of the progress bar, if e.g. 1300 steps are taken.
Beautify the CSS-Code and use Tab-Indentation for better readability.
https://github.com/firstcontributions/first-contributions
Reach out to these guys and see if they can throw us a pointer :D
Hey there, first of all I'd like to say im a big chess fan and this project is pretty cool!
i'd like to contribute to this project and add a little detail for the people that are not really familiar with the game.
My idea is to simply project where the knight is able to move on the board. For someone that can be an annoying thing so i will make it as nice as possible with of course the option to remove that visual.
Can I work on that please?
Maintainers will help me assess and merge pull requests.
Leave a comment below v
Make a set of 3 achievements that celebrate 10 confirmed kills, 100 confirmed kills and 500 confirmed kills overall.
If you're down, also make one for confirmed kills per game!
Moving via the keyboard uses the e.keyCode
values, which are now deprecated. Super easy.
contact me please on my email that i have in my bio, i'd like to ask tou a favor thanks!
Pawns always start on the 2nd row and move and take like standard pawns. If they reach the top row, they get promoted to queens!
If you play the game for a while you can see that some pieces spawn under the player. This is not ideal ๐
In advanced arcade mode, you can use pickups that change the way your knight moves (into other pieces).
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.