Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Encirclement does not work on map edges

Aperta
#4,635 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
game-dev

Direzione di ricerca

Inizia riproducendo lo scenario ai margini della mappa descritto nell’issue, quindi confrontalo con un accerchiamento accanto a un lago o all’oceano. Segui il controllo dell’accerchiamento dal punto di ingresso del gameplay; il lavoro è completato quando un giocatore completamente circondato ai margini della mappa perde e la proprietà cambia, mentre il comportamento esistente al di fuori dei margini rimane corretto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

approved Stale

Describe the bug
So far I am aware of this strategy/feature "encirclement": if player A's land fully surrounds player B's land (NPC or not), then player B instantly loses and the land becomes owned by player A.

However, this does not work on map edges.

To Reproduce
Steps to reproduce the behavior:

  1. Start near map edge (Player A)
  2. Find a player that is at the map edge (Player B)
  3. Surround Player B
  4. No encirclement is triggered

Expected behavior
Encirclement should occur and Player B loses.

Screenshots
(Not screenshot, but an illustration of the situation.)

Consider this hypothetical scenario, where the colors are:

  • White: unowned/neutral
  • Red: Player A
  • Blue: Player B
  • Black: out-of-bounds area / map edge
Image

Then, Player A should have encircled Player B, and Player B should lose.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version 152

Additional context

It may be a good idea to also check lake-side / ocean-side encirclement, to ensure encirclement still works as expected.

Assignment

  • I'd like to be assigned to this issue and work on it myself
Lingua principale
TypeScript
Stelle
2.7k
Fork
1.4k
Merge medio
18h 33m
PR unite (30g)
321

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openfrontio/OpenFrontIO

Tutte le issue di openfrontio/OpenFrontIO

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.