Coder Social home page Coder Social logo

itzmealvin / dsa_battleshipremastered Goto Github PK

View Code? Open in Web Editor NEW

This project forked from congbangitiu/battleship-remastered

1.0 0.0 0.0 26.35 MB

The Game Battleship with Universe theme for DSA Course at International University

Home Page: https://battleship-remastered.vercel.app

License: MIT License

JavaScript 99.97% CSS 0.01% HTML 0.02%
artificial-intelligence data-algorithms data-structures games javascript p5js

dsa_battleshipremastered's Introduction

Banner

Contributors Forks Stargazers Issues


Logo

ALGORITHM & DATA STRUCTURES

Team Name: JOSEPH

An online game created with HTML, CSS, Javascript and p5.js for Algorithm & Data Structures course in International University - VNUHCM!

Table of contents ๐Ÿ“

  1. Introduction
  2. Techniques
  3. Charts
  4. Features
  5. Challenges
  6. Acknowledgments
  7. References

Introduction ๐Ÿงฑ

We took an Algorithm & Data Structures course and the final project was creating a Battleship game. It was challenging but also incredibly fun! We had to implement different algorithms for generating ships and randomizing their placement on a grid, along with logic that could handle both human and computer input. That was just the tip of the iceberg though - we also had to handle game states and error checking, all while optimizing for speed and efficiency. One thing I loved about this project was how it brought together everything we learned throughout the course - from different data structures like linked lists to more advanced algorithms like minimax. Plus, getting to play against friends (or the computer) once we finished coding made all the hard work completely worth it!

Team Members ๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ

Order Name ID Email Github account Facebook
1 Nguyen Luan Cong Bang ITITIU20163 [email protected] congbangitiu Cรดng Bแบฑng
2 Pham Minh Vu ITDSIU20354 [email protected] PMinhVu Vu Pham
3 Nguyen Quang Dieu ITDSIU20031 [email protected] itzmealvin Nguyen Quang Dieu
4 Nguyen Hoang Anh Tu ITDSIU20090 [email protected] nghganhtu Joseph Nguyen
5 Dang Nhat Huy ITITIU20043 [email protected] Nhathuy1305 Nhแบญt Huy

Installation ๐ŸŽฏ

  1. Open the terminal on your IDE
  2. Clone the repo
    git clone https://github.com/congbangitiu/Battleship-Remastered.git
  3. Check the file status
    git status
  4. Change branch
    git checkout 'branch_name'

Motivation ๐Ÿฆพ

Motivation is what drives us to succeed in life, and when it comes to computer science, algorithms & data structures provide the necessary tools to achieve that success. The classic game of Battleship relies heavily on these concepts as players must efficiently search through a grid of potential targets while maximizing their chances of hitting the opponent's ships. Optimization is key in this game, as slow searching can mean the difference between victory and defeat. This is where algorithms come into play - by implementing sophisticated searching techniques such as binary search or A* search, players can quickly traverse the board and locate enemy ships with minimal effort. Likewise, data structures like hash tables assist in storing player moves for easy retrieval later on. In combining these methods with strategic planning and intuition, players can become masters of modern-day Battleship strategy.

Task Allocation ๐Ÿ™†โ€โ™‚๏ธ

Order Task Assignee Contribution
1 Player class, Menu state, Project Management Cong Bang 20%
2 Multi-player State, Single player state, Statistics state Minh Vu 20%
3 New map state, Win state calling, Finding assets Quang Dieu 20%
4 Animation class, Button class, Ship class, Sketch, Draw, Swap map Anh Tu 20%
5 Github Management, Bot class, Instruction state Nhat Huy 20%

Techniques ๐Ÿ•น๏ธ


Features ๐Ÿ•น๏ธ

  • Completed: UX/UI, 2 players
  • Incompleted: Network playing
  • Task allocation for each team member
  • Time management
  • Using platform for communication (Drive, Trello)
  • Working environment (Github)

Acknowledgments๐Ÿง 

We would want to express our gratitude to Dr. Tran Thanh Tung for providing us with the chance to participate in this project and apply what we learned in theory into practice. This project's learning curve was steep, but it was well worth it for all of us. We have learned more about interface technologies to construct a functioning application that interacts with our project. Sir, we want to thank you again for all the hard work and expertise that you have put into your teaching. We'll make sure that all we've learned doesn't go to waste, and that we can master them better from now on โค๏ธ


  1. danielrzhang
  2. veykos
  3. abdullahjamal1
  4. Janekk
  5. billmei

Back to top โ†‘

dsa_battleshipremastered's People

Contributors

nhathuy1305 avatar itzmealvin avatar congbangitiu avatar nghganhtu avatar pminhvu avatar

Stargazers

 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.