Foreman's fifth 3-pointer of the game tied it at 80 with 1:48 left and Gueye grabbed an offensive rebound on his missed free throw with 4 seconds left and sank it for an 85-84 lead.
The Seawolves nearly made a heave at the end of regulation.
Nigel Jackson tied a career-high with 22 points for the Seahawks (2-4). Tyrone Nesby IV added 19 points, and Elijah Ford had 15 points and six rebounds.
For more AP college basketball coverage: https://apnews.com/Collegebasketball and http://twitter.com/AP-Top25
Elements of this story were generated by Automated Insights, http://www.automatedinsights.com/ap, using data from STATS LLC, https://www.stats.com