Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

市章当てクイズで都道府県を指定できるように #952

Merged
merged 6 commits into from
Oct 22, 2024

Conversation

settyan117
Copy link
Contributor

した

・都道府県を指定したときは実績は解除しない

city-symbol/index.ts Outdated Show resolved Hide resolved
city-symbol/index.ts Outdated Show resolved Hide resolved
placeImage: 'https://raw.githubusercontent.com/hakatashi/icon/master/images/icon_480px.png',
ruby: 'はかたし',
};
const getRandomCitySymbol = async (prefSet: Set<PrefectureKanji> = new Set(Object.keys(prefectures) as PrefectureKanji[]), allowEasterEgg: boolean = true): Promise<City> => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MAY]
allowEasterEggいらないきがする (prefsetが指定されていればfalseでよさそう)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MAY] 変換めんどくさいのでまあArrayでよさそう?

Copy link
Contributor Author

@settyan117 settyan117 Oct 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allowEasterEgg

なんかもうちょい別の(イースターエッグを消したい)状況が出たときのために引数入れといてもいいかな~と雑に思っています

Array

ま~やっぱそうかなあ(意味的には Set であってほしいが、回りくどいな~とは思っていた)

city-symbol/index.ts Outdated Show resolved Hide resolved
@settyan117 settyan117 force-pushed the dev/settyan117/city-symbol-specify-pref branch from 13c90ee to ff1b21e Compare October 20, 2024 13:29
@settyan117 settyan117 merged commit c7884f6 into master Oct 22, 2024
4 checks passed
@settyan117 settyan117 deleted the dev/settyan117/city-symbol-specify-pref branch October 22, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants