Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ This might take a while...
### Installation

1. **Clone the repository**

```bash
git clone https://github.com/PartMan7/PartBot.git
cd PartBot
```

2. **Install dependencies**

```bash
npm install
```
Expand Down
5 changes: 1 addition & 4 deletions src/ps/games/othello/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export function renderBoard(this: This, ctx: RenderCtx) {
{cell ? (
<span style={{ ...roundStyles, background: cell === 'W' ? 'white' : 'black' }} />
) : action ? (
<Button
value={`${this.msg} play ${i}-${j}`}
style={{ ...roundStyles, border: '1px dashed black', background: '#6666' }}
>
<Button value={`${this.msg} play ${i}-${j}`} style={{ ...roundStyles, border: '1px dashed black', background: '#6666' }}>
{' '}
</Button>
) : null}
Expand Down
4 changes: 3 additions & 1 deletion src/ps/games/scrabble/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ export class Scrabble extends BaseGame<State> {
wordList: invalidWords.list(this.$T),
});
}
const wordsPoints = Object.fromEntries(wordData as [string, number][]);
const wordsPoints = Object.fromEntries(
(wordData as [string, number][]).map(([word, points], index) => [word + '\u200b'.repeat(index), points])
);
return { total: Object.values(wordsPoints).sum() + bingoPoints, bingo, words: wordsPoints };
}
}
1 change: 1 addition & 0 deletions src/web/react/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## WARNING

`tsc` will NOT check any files under `@/web/react`! Please use an
editor integration (eg: TSServer) to catch errors, since TypeScript
does not properly support references with noEmit.