An initially unknown string $x$ is known to be in $C\subseteq \{0,1\}^n$. Every round you are allowed to reveal one bit of $x$ (on your choice, and adaptively). How many bits do you need to reveal in order to be certain about what $x$ is?
For example, if $C=\{x\mid \text{parity}(x)=0\}$, then $(n-1)$ bits are needed. If $C=\{e_i\mid i\in [n], e_i=(0,0,\cdots,0,1(\text{i}^{th}\text{coordinate}),0,\cdots, 0)\}$ then also $(n-1)$ bits are needed. But if $C=\{0^p1^{n-p}\mid p\in [n]\}$ then only $\log n$ bits are needed since we can binary search the position where the alternation happens.
Was this "revealing complexity" $RC(C)$ studied before? If not, what is some combinatorial feature (or any sufficient/necessary conditions) of $C$ with $RC$ to be $n-o(\log n)$?
Any previous results or new ideas are appreciated.