nightsky30 / koikoi

Koi Koi Hanafuda
GNU General Public License v2.0
7 stars 1 forks source link

Refactor code #29

Open nightsky30 opened 4 years ago

nightsky30 commented 4 years ago

Refactor code:

commit 8d5d9633a0a1c87edfca8a9e33c6dd5a70ca5f87 commit 49e0d6551b1aa73db12e975153581546d16cf8e3 commit a3d802d755daca0a2ffa5604f473e33d6a7b7df2 commit bd4bc80053b2a9d56657edf5ba28f43b03070991 commit 02802e5f4d3df706b98db4a0edb599c03901d11b commit 8fcb000498202b977a0fd782910ebdd7081870a4 commit 861374c3faad649146c2d61554fbbb4f458f24a0

nightsky30 commented 4 years ago

Though it does not cause a bug because the card numbers do not reach double digits...Use regex uniformly with getting sender button numbers. Still need to fix that in these two places:

https://github.com/nightsky30/koikoi/blob/d414f1c5f0daaf3353f385c30d76e1138dbcb40d/src/koikoi.cpp#L1802 https://github.com/nightsky30/koikoi/blob/d414f1c5f0daaf3353f385c30d76e1138dbcb40d/src/koikoi.cpp#L1842