Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📃: Solitare #661

Closed
Hudson-bot opened this issue Oct 7, 2024 · 2 comments · Fixed by #2369
Closed

📃: Solitare #661

Hudson-bot opened this issue Oct 7, 2024 · 2 comments · Fixed by #2369
Assignees
Labels
gssoc-ext pr for GSSoC hacktoberfest pr for hacktoberfest hacktoberfest-accepted accept pr for hacktoberfest level2

Comments

@Hudson-bot
Copy link
Contributor

Hudson-bot commented Oct 7, 2024

Issue: #661
🔴 Tech Stack:
HTML
CSS
JavaScript
🔴 Objective:
Build a basic Solitaire game, where players can move cards between stacks, following Solitaire rules.

🔴 Summary:
Solitaire is a card game where the objective is to move all cards to the foundation in ascending order. The game typically has:

A tableau with 7 columns.
A stockpile from which cards can be drawn.
A foundation for each suit (hearts, diamonds, clubs, spades).
Game Features:
Drag and drop functionality.
Logic for valid card moves.
Game win condition when all cards are moved to foundations.
Steps to Build:
HTML Layout:

Create a grid layout with sections for the tableau, stockpile, and foundation.
Each stack in the tableau should allow cards to be dragged and dropped.
CSS Styling:

Style the cards using custom CSS or image sprites for card faces.
Design the layout of the board with grid or flexbox.
JavaScript Logic:

Handle the drag and drop functionality.
Implement Solitaire rules (e.g., only kings can go to empty columns, cards must alternate color, etc.).
Add logic to detect a win when all cards are sorted into the foundation.

Name: Gourav Panigrahi
Role: GSSoC ,Hactoberfest2024

@iamrahulmahato iamrahulmahato added hacktoberfest pr for hacktoberfest hacktoberfest-accepted accept pr for hacktoberfest level2 gssoc-ext pr for GSSoC labels Oct 7, 2024
@Niraj1608
Copy link
Contributor

@iamrahulmahato assign me this issue

Copy link

Hello @Hudson-bot! Your issue #661 has been successfully closed. ✅ Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext pr for GSSoC hacktoberfest pr for hacktoberfest hacktoberfest-accepted accept pr for hacktoberfest level2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants