CodingTrain / CodingTrain/Suggestion-Box

Coding Challenge: Battleship... and a personal note

Đang mở
#595 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
570
Fork
85
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Daniel,

First a personal note: I am impressed and inspired by your videos. From your way to present theory to application it is truely wonderful to see. I enjoy seeing someone reaching people in all walks of life. You are truly a blessing to me and I am sure many others. Thank you for the hard, tedious, tiring work you do. I am an engineering consultant working in facilitation in manufacturing environments - things like leadership, lean manufacturing, and automation. I also code on the side. I study and absorb not just the code but how you communicate. I am big on process and spontaneous creativity is not easy to learn... it is a gift. I know well that can be incredibly taxing - and I appreciate your energetic enthusiasm. Thank you.

Anyway, my request is for a battleship coding challenge. Yes there is the logic piece, some simple visuals, board setup, data structure decisions to hold game data (object based? Matrix based?) and the like.

The twists I propose:

  • An AI player mode that has selectable skill levels to play against. Say easy, medium, hard. The accuracy of shots after a first hit detection could go up as you have a harder AI. I was thinking that when a hit is made by the AI, the AI has an area of cells around the hit that it can pick from. The area range of available open spaces to shoot next around the hit increases as AI skill decreases.( Odds of making a successful second shot a hit decrease - more possibilities) Maybe add some logic on not shooting a space when we know the boat availability- if a sub with 3 hit points is left, don't shoot where only 2 spaces ajoin and the 3rd is a miss already.

  • A 2 player version where two separate web pages play against each other. Maybe have a way to log into the server, and the server picks players randomly? That may be a stretch... maybe a simple 2 page interaction is the better place to start.

Thanks,

Shawn

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Issue không nêu tệp nào trong repository, các bài kiểm thử hoặc các điểm vào; hãy bắt đầu bằng cách xem xét cấu trúc dự án và xác định liệu việc triển khai Battleship có nằm trong phạm vi hay không. Công việc chỉ được xem là hoàn tất khi có một đặc tả tính năng đã được thống nhất và giới hạn rõ ràng, bao quát gameplay được yêu cầu cùng hành vi của AI hoặc chế độ nhiều người chơi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
game-dev
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.