kingcoyote / twilight Goto Github PK
View Code? Open in Web Editor NEWTwilight Struggle game tracker
Twilight Struggle game tracker
CIA Created should be 1 ops, not 3.
Just a couple more issues I spotted while looking at the tracker-
Special Relationship and Cambridge Five are incorrectly marked as removed after played. They should just go into the discard pile.
South East Asia Scoring can technically go into the discard pile, with the use of Five Year Plan, Ask Not, and a few other cards. There should be an option to discard SEA scoring instead of just sending it to the removed pile.
Clicking on a Scoring Card to open the dropdown in Slim mode, then clicking again to close it, causes the card title to become invisible.
Add a button near the sorting options to allow group by region. This would rearrange the deck/discard/removed piles to show what cards affect certain regions. The top level grouping would be region (Europe, Africa, etc) and contain sub groupings for countries. Some cards (like Suez Canal Crisis, OPEC, or The Iron Lady) affect multiple countries and would be shown multiple times.
Start a new game, uncheck 'add optional cards'
Add the mid war cards. Che and Our Man in Tehran are listed.
SImilar with late war cards.
No early optional cards though.
There is no way to start a game with the 7 optional cards turned off. The only way to get rid of them is to manually move them to the Removed stack after starting a game.
Clear all cache and localsession in a browser so it has no stored game data. Navigate to twilight. Notice that The Cambridge Five and NORAD are missing. Click New Game. You'll find them now.
When your opponent plays a card like CIA Created, Lone Gunman or Aldritch Ames remixed, they see your hand. The Cambridge Five shows scoring cards, and turns 3 and 7 deal the last cards in the deck, allowing you and your opponent to know some cards dealt.
Knowing what cards your opponent has seen can be useful for planning. There could be some ability to flag a card as seen so you can remember which cards your opponent should know about.
When using a mobile display, almost all of the buttons for new game, config, reshuffle, sort, grouping, etc are misaligned and generally poorly laid out.
Unlike the other scoring cards, the SEA Scoring card can go into the remove pile and not the discard pile.
Right now, the data is stored to localStorage
on the browser. This has inconsistent persistance and can't be moved across browsers. If a player wants to look at their hand from more than one computer, they can't. Cloud storage could solve this. There are APIs for Dropbox, Google Drive, OneDrive, etc. that allow an app to authenticate to someone's storage account and gain access to a folder. Moving the save game data into that folder would allow a user to share data between computers and create a more permanent storage solution.
Add a feature that supports two kinds of notes per card - global and per game. The global notes persist for the user across all games, while the per game notes only exist within the current game.
On each card, add a help or info button that is a direct link to the relevant card page on twilightstrategy.com, like Brush War would go to https://twilightstrategy.com/2012/09/04/brush-war/.
Using the prefers-color-scheme
media query, the entire theme can be changed into dark mode to respect users who want dark mode.
Just like the ability to group by region or effect, it should be possible to group by side to see neutral, USA and USSR cards separated in the deck.
When using a mobile display, the 2 column layout for USSR and USA hands are too narrow to read any of the card titles.
Some cards, like Marshall Plan, Formosan Resolution, or Warsaw Pact Formed have lasting effects. On the cards this is indicated with an underline. The app should also show this.
Tracker has discard only.
Some scoring cards have no text, some cards have the text as just an unbroken line. The cards should render text as a table, similar to how the actual cards look.
Add a few things to support multi game mode:
When selecting a game from the load game menu, that game will be loaded. This allows a player to maintain multiple open games at the same time.
A few cards, like "How I Learned to Stop Worrying..." and "Portuguese Empire Crumbles" are long enough to cause the card title to break into multiple lines, which is unattractive. This happens occasionally with the 3 stacks on the bottom (Deck, Discard, Removed) but happens much more often with cards in the hand, since those are 4 across instead of 3 like the stacks, making them narrower.
On playdek, when Shuttle Diplomacy is played is does not go into discard or removed. Rather as the text says 'place in front of us player' it seems to go into a different section.
Functionally, it gets removed and then not counted in the card counts up top.
Clicking buttons to move cards works, but dragging and dropping cards is more intuitive and user friendly.
These filters could be things like:
These filters could be enabled through a dropdown menu to hide all cards that don't meet these filters, allowing a player to review what cards could, for instance, give their opponent MilOps without a coup (if DEFCON is 2 and no non-BGs contain opponent influence).
With Vue 3 fully out of beta and Vue 2 reaching end of life in Sep 2023, this project should be migrated to Vue 3. This will require significant rewriting of all components to transition to the composition API using the <script setup> structure. Another big impact is dropping BootstrapVue and either using an alternate tool (like Elements Plus or Vuetify) or going to native Bootstrap 5.
The online game has a particular sort mode for the discard and removed piles. The sorting priority is:
Having an option to turn on this sort mode for the deck would help with quickly moving the cards from deck to discard/removed on turns 3/7 at the reshuffle.
The Red Scare/Purge card is incorrectly listed as 3 ops when it should be 4 ops.
The playdek sorting order for discard and removed is different depending on who the player is.
For USSR it is: scoring, USSR, US, Neutral
For US it is: scoring, US, USSR, Neutral
The current UI contains a lot of detail that is helpful for beginners and intermediate players who may not have every card memorized. More advanced players might prefer less detail so everything can fit on one screen. A slim UI mode that removes card text by default and reduces the padding/margins around card titles could accomplish this.
Arab-Israeli War is marked as a Neutral Card, even though it's supposed to be a USSR event.
Also, Special Relationship, NORAD, and the Cambridge Five are missing from the list.
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.