Skip to content

Commit

Permalink
Update model.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fulcanelly committed Aug 3, 2023
1 parent 058b14c commit 6c3f232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export function findWires(tiles: PinCell[]): [Wire[], PinCell[]] {
}

export function getValueAt(cells: PinCell[], input: Input): boolean {
// olosdkkf
const samePosition = cell => R.equals(cell.position, input.position)
return cells.find(samePosition)?.pins[input.pinIndex].value!
}
Expand All @@ -192,7 +193,6 @@ function pinCellToCell(cells: PinCell[]): Cell[] {
return cells.map(it => it.actual)
}


export function updateCellsNToActuall(cells: PinCell[]): Cell[] {
let [wires, rest] = findWires(cells)
let result: PinCell[] = []
Expand Down Expand Up @@ -226,6 +226,6 @@ export function updateCellsNToActuall(cells: PinCell[]): Cell[] {



function x () {
return 1 /2 as any as StaticRangeInit;
function x () {
return 1 /2 as any as StaticRangeInit;
}
5 changes: 3 additions & 2 deletions src/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ function startingCells(): Cell[] {
}


function loh(a, b) {
return 11 + b
}
// TODO

const events = {

toggle_editing: {
send(dispatch: React.Dispatch<Action>) {
},

handle() {

}
}
}
Expand Down

0 comments on commit 6c3f232

Please sign in to comment.