Comments (2)
probably related to #75
from bot_or_not.
this is now fixed.
The problem that was solved by #75 was that the timer wasn't clearing properly at the start of every round. So, if you took your time (for example) entering your name or starting a chat, the timer would already be 'over' by the time you went to the next screen. This got solved by making the setting of this.shouldUpdate
only happen after the timer had been reset, using:
this.setState({ timerStart: Date.now()},
() => this.setState({ timerTime: 0},
() => this.shouldUpdate = true))
...which worked really great, apart from:
now there were only 2 screens getting skipped, and only after the checkTimeout
screens. What was happening was that, while the callback was happening, the loop had already looped around again and was getting called twice, effectively skipping a screen.
This is solved by just await
-ing checkTimeout
in configureState
, which seems to work pretty well!
from bot_or_not.
Related Issues (20)
- since there is an opponent name, make the bot use that if asked "what is your name" ? HOT 5
- last screen - the header shouldn't have a countdown HOT 1
- advance the dialogue format from single<-->single text to multiple <--> single or multiple <---> multiple HOT 3
- message queue not being cleared properly HOT 3
- No 'wait' screen before final truth round HOT 5
- player name gets set to whatever the last message they sent was
- hook Intro bot into Free Chat component HOT 1
- breakdown Intro flow into more screens HOT 1
- little pauses before bot reveal, and before player is matched
- (potential) ability to make rounds longer than 1min
- better 'filler' words
- better context buffer
- timer not clearing properly before start of next round HOT 1
- move nlp to it's own file
- add 'data disclosure' screen at the start HOT 2
- add link to 'about' at the end of the interaction
- 'typing' dots being displaced inwards HOT 11
- remove "first up: Truth" screen? HOT 3
- Add blacklisted words
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bot_or_not.