Adverse possession is not available in all situations. For example, title to government-owned land may not be obtained by adverse possession.
I know a friend in Spotsylvania County, Virginia that did that, and the county gave him the property in question.
I’ve been associated with this business for 50 year. There must be more to it.