MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / getInputCards

Function getInputCards

data-generator/ui.js:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57export function getInputCards() {
58 const cards = [];
59 for (let i = 0; i < game.GAME_STATE.num_cards_per_hand; i++) {
60 cards.push(document.getElementById(`input-card-${i}`).valueAsNumber);
61 }
62 return cards;
63}
64
65/** Updates display of simulation count. */
66export function displayNumSimulationsSoFar() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected