├── cruci_verba ├── README.md ├── android │ ├── gradle.properties │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── cruci_verba │ │ │ │ │ │ └── MainActivity.java │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── flutter_export_environment.sh │ │ └── AppFrameworkInfo.plist │ ├── Runner │ │ ├── AppDelegate.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Info.plist │ │ └── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ └── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj ├── lib │ ├── classes │ │ ├── Record.dart │ │ ├── Tuple.dart │ │ └── CrossWord.dart │ ├── helpers │ │ └── MyDrawerHelper.dart │ └── main.dart ├── .metadata ├── pubspec.yaml ├── test │ └── widget_test.dart ├── .gitignore └── pubspec.lock ├── crossword1.png ├── crossword2.png └── README.md /cruci_verba/README.md: -------------------------------------------------------------------------------- 1 | # cruci_verba 2 | 3 | -------------------------------------------------------------------------------- /cruci_verba/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /cruci_verba/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /cruci_verba/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /crossword1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/crossword1.png -------------------------------------------------------------------------------- /crossword2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/crossword2.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fl0wo/CrossWord-Generator/HEAD/cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /cruci_verba/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /cruci_verba/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /cruci_verba/lib/classes/Record.dart: -------------------------------------------------------------------------------- 1 | class Record { 2 | String _name; 3 | List _desc; 4 | 5 | Record(this._name, this._desc); 6 | 7 | String toString() { 8 | return _name; 9 | } 10 | 11 | String getName() { 12 | return _name; 13 | } 14 | 15 | List getDesc() { 16 | return _desc; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /cruci_verba/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: e5b1ed7a7f7b85c1877e09a9495681f719be5578 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /cruci_verba/lib/classes/Tuple.dart: -------------------------------------------------------------------------------- 1 | class Tuple { 2 | type1 Item1; 3 | type2 Item2; 4 | type3 Item3; 5 | 6 | Tuple(this.Item1, this.Item2, this.Item3); 7 | } 8 | 9 | class Tuple4 { 10 | type1 Item1; 11 | type2 Item2; 12 | type3 Item3; 13 | type4 Item4; 14 | 15 | Tuple4(this.Item1, this.Item2, this.Item3, this.Item4); 16 | } 17 | -------------------------------------------------------------------------------- /cruci_verba/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cruci_verba/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /cruci_verba/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: cruci_verba 2 | description: A new Flutter project. 3 | 4 | version: 1.0.0+1 5 | 6 | environment: 7 | sdk: ">=2.2.0 <3.0.0" 8 | 9 | dependencies: 10 | flutter: 11 | sdk: flutter 12 | async_loader: ^0.1.1 13 | 14 | path_provider: ^1.3.0 15 | 16 | cupertino_icons: ^0.1.2 17 | 18 | dev_dependencies: 19 | flutter_test: 20 | sdk: flutter 21 | 22 | flutter: 23 | uses-material-design: true 24 | assets: 25 | - assets/data/data.json -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/java/com/example/cruci_verba/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.cruci_verba; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /cruci_verba/ios/Flutter/flutter_export_environment.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This is a generated file; do not edit or check into version control. 3 | export "FLUTTER_ROOT=/home/flo/Documents/flutter" 4 | export "FLUTTER_APPLICATION_PATH=/home/flo/Documents/cruci_verba/cruci_verba" 5 | export "FLUTTER_TARGET=lib/main.dart" 6 | export "FLUTTER_BUILD_DIR=build" 7 | export "SYMROOT=${SOURCE_ROOT}/../build/ios" 8 | export "FLUTTER_FRAMEWORK_DIR=/home/flo/Documents/flutter/bin/cache/artifacts/engine/ios" 9 | export "FLUTTER_BUILD_NAME=1.0.0" 10 | export "FLUTTER_BUILD_NUMBER=1" 11 | -------------------------------------------------------------------------------- /cruci_verba/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /cruci_verba/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /cruci_verba/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /cruci_verba/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:cruci_verba/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /cruci_verba/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | cruci_verba 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cruciverba Generator 2 | CrossWord Generator made in Flutter, takes data from daja.json 3 | 4 | I generated that file with an AI algorithm... 5 | 6 | **Given N** (number of row) **and M** (number of column) **it generates a crossword grid!** 7 | (Using a personal modified version of backtracking algorithm) 8 | 9 | The database is populated with italian words, and definitions! 10 | Eventualy you can translate them in english or whatever... 11 | 12 | ## Simple generation : 13 | ![cruciverba img 1](https://github.com/fl0wo/cruciverba_generator/blob/master/crossword1.png) 14 | 15 | 16 | ### Example of db record : 17 | ```javascript 18 | { 19 | "_id":{ 20 | "$oid":"5d7281eb7b2e1815b63fedf7" 21 | }, 22 | "nome":"CLASSICA", 23 | "desc":[ 24 | "La musica non leggera", 25 | "Si ascolta in silenzio" 26 | ] 27 | } 28 | ``` 29 | 30 | ```javascript 31 | { 32 | "_id":{ 33 | "$oid":"5d7281f57b2e1815b63fee35" 34 | }, 35 | "nome":"CLIP", 36 | "desc":[ 37 | "Arnese per unire fogli", 38 | "Breve audiovideo", 39 | "Chiude l'orecchino", 40 | "Fermaglio", 41 | "Fermaglio a molla", 42 | "Fermaglio degli orecchini", 43 | "Fermaglio per documenti", 44 | "Fermaglio per fogli", 45 | "Il fermaglio degli orecchini", 46 | "Il fermaglio della biro", 47 | "Piccolo fermaglio", 48 | "Tiene uniti fogli di carta", 49 | "Un breve contributo filmato", 50 | "Un breve filmato", 51 | "Un breve video", 52 | "Un piccolo fermaglio" 53 | ] 54 | } 55 | ``` 56 | 57 | ### Complex generation : 58 | ![cruciverba img 2](https://github.com/fl0wo/cruciverba_generator/blob/master/crossword2.png) 59 | -------------------------------------------------------------------------------- /cruci_verba/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /cruci_verba/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.cruci_verba" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /cruci_verba/lib/helpers/MyDrawerHelper.dart: -------------------------------------------------------------------------------- 1 | import 'package:cruci_verba/classes/CrossWord.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/widgets.dart'; 4 | 5 | import '../classes/Tuple.dart'; 6 | 7 | class MyDrawerHelper { 8 | static getRowsInSquare(BuildContext context, double width, Crossword c) { 9 | var row = []; 10 | 11 | const int percBorder = 10; 12 | const int topBorder = 100; 13 | const int percSquareBorder = 5; 14 | 15 | final int rows = c.getN(); 16 | final int coloumns = c.getM(); 17 | 18 | double width = MediaQuery.of(context).size.width; 19 | double border = width * percBorder / 100.0; 20 | 21 | double lato = (width - (border * 2)) / rows; 22 | double latoBordo = lato * percSquareBorder / 100.0; 23 | 24 | var board = c.getBoard(); 25 | 26 | num horizontaStarts = 0, verticalStarts = 0; 27 | 28 | List> starts = c.getStarts(); 29 | 30 | for (int i = 0; i < rows; i++) { 31 | for (int j = 0; j < coloumns; j++) { 32 | int pos = _contain(starts, i, j); 33 | 34 | horizontaStarts = pos == 0 ? horizontaStarts + 1 : horizontaStarts; 35 | verticalStarts = pos == 1 ? verticalStarts + 1 : verticalStarts; 36 | 37 | row.add(_square( 38 | ((lato * i) + border), 39 | ((lato * j) + topBorder), 40 | lato - latoBordo, 41 | board[i][j] == ' ' || board[i][j] == '*' 42 | ? Colors.black 43 | : Colors.white, 44 | board[i][j], 45 | pos == -1 46 | ? null 47 | : () { 48 | print(pos); 49 | })); 50 | } 51 | } 52 | 53 | return row; 54 | } 55 | 56 | static int _contain(List> list, num x, num y) { 57 | for (int i = 0; i < list.length; i++) { 58 | if (list[i].Item1 == x && list[i].Item2 == y) { 59 | return i; 60 | } 61 | } 62 | return -1; 63 | } 64 | 65 | static Widget _square( 66 | double left, 67 | double top, 68 | double lato, 69 | Color colore, 70 | String txt, 71 | Function() onClick, 72 | ) { 73 | return Positioned( 74 | left: left, 75 | top: top, 76 | width: lato, 77 | height: lato, 78 | child: ClipRRect( 79 | borderRadius: BorderRadius.circular(5.0), 80 | child: GestureDetector( 81 | onTap: onClick, 82 | child: Container( 83 | color: colore, 84 | child: Stack(children: [ 85 | onClick == null 86 | ? new Positioned( 87 | child: Container(), 88 | ) 89 | : new Positioned( 90 | left: 3, 91 | top: 3, 92 | child: Align( 93 | alignment: Alignment.topLeft, 94 | child: Text( 95 | "1", 96 | style: TextStyle( 97 | fontSize: 7.0, fontWeight: FontWeight.bold), 98 | ), 99 | )), 100 | new Positioned( 101 | child: Align( 102 | alignment: Alignment.center, 103 | child: Text( 104 | txt.toUpperCase(), 105 | textAlign: TextAlign.end, 106 | style: TextStyle( 107 | fontSize: 15.0, fontWeight: FontWeight.bold), 108 | ), 109 | ), 110 | ) 111 | ]), 112 | )))); 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /cruci_verba/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.2.0" 11 | async_loader: 12 | dependency: "direct main" 13 | description: 14 | name: async_loader 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.1.2" 18 | boolean_selector: 19 | dependency: transitive 20 | description: 21 | name: boolean_selector 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.0.4" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.1.2" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.14.11" 39 | cupertino_icons: 40 | dependency: "direct main" 41 | description: 42 | name: cupertino_icons 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.1.2" 46 | flutter: 47 | dependency: "direct main" 48 | description: flutter 49 | source: sdk 50 | version: "0.0.0" 51 | flutter_test: 52 | dependency: "direct dev" 53 | description: flutter 54 | source: sdk 55 | version: "0.0.0" 56 | matcher: 57 | dependency: transitive 58 | description: 59 | name: matcher 60 | url: "https://pub.dartlang.org" 61 | source: hosted 62 | version: "0.12.5" 63 | meta: 64 | dependency: transitive 65 | description: 66 | name: meta 67 | url: "https://pub.dartlang.org" 68 | source: hosted 69 | version: "1.1.6" 70 | path: 71 | dependency: transitive 72 | description: 73 | name: path 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "1.6.2" 77 | path_provider: 78 | dependency: "direct main" 79 | description: 80 | name: path_provider 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "1.3.0" 84 | pedantic: 85 | dependency: transitive 86 | description: 87 | name: pedantic 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.7.0" 91 | platform: 92 | dependency: transitive 93 | description: 94 | name: platform 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "2.2.1" 98 | quiver: 99 | dependency: transitive 100 | description: 101 | name: quiver 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "2.0.3" 105 | sky_engine: 106 | dependency: transitive 107 | description: flutter 108 | source: sdk 109 | version: "0.0.99" 110 | source_span: 111 | dependency: transitive 112 | description: 113 | name: source_span 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.5.5" 117 | stack_trace: 118 | dependency: transitive 119 | description: 120 | name: stack_trace 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.9.3" 124 | stream_channel: 125 | dependency: transitive 126 | description: 127 | name: stream_channel 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "2.0.0" 131 | string_scanner: 132 | dependency: transitive 133 | description: 134 | name: string_scanner 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.0.4" 138 | term_glyph: 139 | dependency: transitive 140 | description: 141 | name: term_glyph 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.1.0" 145 | test_api: 146 | dependency: transitive 147 | description: 148 | name: test_api 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "0.2.5" 152 | typed_data: 153 | dependency: transitive 154 | description: 155 | name: typed_data 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.1.6" 159 | vector_math: 160 | dependency: transitive 161 | description: 162 | name: vector_math 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "2.0.8" 166 | sdks: 167 | dart: ">=2.2.2 <3.0.0" 168 | flutter: ">=0.1.4 <2.0.0" 169 | -------------------------------------------------------------------------------- /cruci_verba/lib/classes/CrossWord.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'Tuple.dart'; 4 | 5 | class Crossword { 6 | String letters = "abcdefghijklmnopqrstuvwxyz"; 7 | List _dirX = [0, 1]; 8 | List _dirY = [1, 0]; 9 | List> _board; 10 | List> _hWords; 11 | List> _vWords; 12 | 13 | List usedWords; 14 | 15 | List> _starts; 16 | 17 | num _nBlockInserted = 0; 18 | 19 | num _n; 20 | num _m; 21 | num _hCount, _vCount; 22 | static Random _rand; 23 | static List _wordsToInsert; 24 | static List> _tempBoard; 25 | static num _bestSol; 26 | DateTime initialTime; 27 | 28 | Crossword(num xDimen, num yDimen) { 29 | _n = xDimen; 30 | _m = yDimen; 31 | _rand = new Random(); 32 | 33 | _board = new List>(xDimen); 34 | _hWords = new List>(xDimen); 35 | _vWords = new List>(xDimen); 36 | usedWords = new List(); 37 | 38 | _starts = new List>(); 39 | 40 | for (var i = 0; i < _n; i++) { 41 | _board[i] = new List(yDimen); 42 | _hWords[i] = new List(yDimen); 43 | _vWords[i] = new List(yDimen); 44 | 45 | for (var j = 0; j < _m; j++) { 46 | _board[i][j] = ' '; 47 | } 48 | } 49 | } 50 | 51 | String toString() { 52 | String result = ""; 53 | for (num i = 0; i < _n; i++) { 54 | for (num j = 0; j < _m; j++) { 55 | result += 56 | letters.contains(_board[i][j].toString()) ? _board[i][j] : ' '; 57 | } 58 | if (i < _n - 1) result += '\n'; 59 | } 60 | return result; 61 | } 62 | 63 | String getAt(num r, num c) { 64 | return _board[r][c]; 65 | } 66 | 67 | void setAt(num r, num c, String value) { 68 | _board[r][c] = value; 69 | } 70 | 71 | num getN() { 72 | return _n; 73 | } 74 | 75 | num getM() { 76 | return _m; 77 | } 78 | 79 | var inRTL; 80 | 81 | isValidPosition(num x, num y) { 82 | return x >= 0 && y >= 0 && x < _n && y < _m; 83 | } 84 | 85 | num canBePlaced(String word, num x, num y, num dir) { 86 | var result = 0; 87 | 88 | if (dir == 0) { 89 | for (var j = 0; j < word.length; j++) { 90 | num x1 = x, y1 = y + j; 91 | 92 | if (!(isValidPosition(x1, y1) && 93 | (_board[x1][y1] == ' ' || _board[x1][y1] == word[j]))) return -1; 94 | if (isValidPosition(x1 - 1, y1)) if (_hWords[x1 - 1][y1] > 0) return -1; 95 | if (isValidPosition(x1 + 1, y1)) if (_hWords[x1 + 1][y1] > 0) return -1; 96 | if (_board[x1][y1] == word[j]) result++; 97 | } 98 | } else { 99 | for (var j = 0; j < word.length; j++) { 100 | num x1 = x + j, y1 = y; 101 | if (!(isValidPosition(x1, y1) && 102 | (_board[x1][y1] == ' ' || _board[x1][y1] == word[j]))) return -1; 103 | if (isValidPosition(x1, y1 - 1)) if (_vWords[x1][y1 - 1] > 0) return -1; 104 | if (isValidPosition(x1, y1 + 1)) if (_vWords[x1][y1 + 1] > 0) return -1; 105 | if (_board[x1][y1] == word[j]) result++; 106 | } 107 | } 108 | 109 | num xStar = x - _dirX[dir], yStar = y - _dirY[dir]; 110 | if (isValidPosition(xStar, yStar)) if (!(_board[xStar][yStar] == ' ' || 111 | _board[xStar][yStar] == '*')) return -1; 112 | 113 | xStar = x + _dirX[dir] * word.length; 114 | yStar = y + _dirY[dir] * word.length; 115 | if (isValidPosition(xStar, yStar)) if (!(_board[xStar][yStar] == ' ' || 116 | _board[xStar][yStar] == '*')) return -1; 117 | 118 | return result == word.length ? -1 : result; 119 | } 120 | 121 | void putWord(String word, num x, num y, num dir, num value) { 122 | if (usedWords.contains(word)) return; 123 | var mat = dir == 0 ? _hWords : _vWords; 124 | 125 | usedWords.add(word); 126 | _nBlockInserted++; 127 | _starts.add(new Tuple4(x, y, dir, word.length)); 128 | 129 | for (var i = 0; i < word.length; i++) { 130 | num x1 = x + _dirX[dir] * i, y1 = y + _dirY[dir] * i; 131 | _board[x1][y1] = word[i]; 132 | mat[x1][y1] = value; 133 | } 134 | 135 | num xStar = x - _dirX[dir], yStar = y - _dirY[dir]; 136 | if (isValidPosition(xStar, yStar)) _board[xStar][yStar] = '*'; 137 | xStar = x + _dirX[dir] * word.length; 138 | yStar = y + _dirY[dir] * word.length; 139 | if (isValidPosition(xStar, yStar)) _board[xStar][yStar] = '*'; 140 | } 141 | 142 | num addWord(String word) { 143 | //var max = int.MaxValue; 144 | // region ubicate the word into the board 145 | var wordToInsert = word; 146 | var info = bestPosition(wordToInsert); 147 | if (info != null) { 148 | if (info.Item3 == 0) { 149 | _hCount++; 150 | // if (inRTL) 151 | // wordToInsert = word.Aggregate("", (x, y) => y + x); 152 | } else { 153 | _vCount++; 154 | } 155 | var value = info.Item3 == 0 ? _hCount : _vCount; 156 | putWord(wordToInsert, info.Item1, info.Item2, info.Item3, value); 157 | return info.Item3; 158 | } 159 | 160 | return -1; 161 | } 162 | 163 | List> findPositions(String word) { 164 | //region find best position to ubicate the word into the board 165 | var max = 0; 166 | var positions = new List>(); 167 | for (var x = 0; x < _n; x++) { 168 | for (var y = 0; y < _m; y++) { 169 | for (var i = 0; i < _dirX.length; i++) { 170 | var dir = i; 171 | // var wordToInsert = i == 0 && inRTL ? word.Aggregate("", (a, b) => b + a) : word; 172 | var wordToInsert = word; 173 | 174 | var count = canBePlaced(wordToInsert, x, y, dir); 175 | 176 | if (count < max) continue; 177 | if (count > max) positions.clear(); 178 | 179 | max = count; 180 | positions.add(new Tuple(x, y, dir)); 181 | } 182 | } 183 | } 184 | //endregion 185 | 186 | return positions; 187 | } 188 | 189 | Tuple bestPosition(String word) { 190 | var positions = findPositions(word); 191 | if (positions.length > 0) { 192 | var index = _rand.nextInt(positions.length); 193 | return positions[index]; 194 | } 195 | return null; 196 | } 197 | 198 | bool isLetter(String a) { 199 | return letters.contains(a.toString()); 200 | } 201 | 202 | List> getBoard() { 203 | return _board; 204 | } 205 | 206 | void reset() { 207 | for (var i = 0; i < _n; i++) { 208 | for (var j = 0; j < _m; j++) { 209 | _board[i][j] = ' '; 210 | _vWords[i][j] = 0; 211 | _hWords[i][j] = 0; 212 | _hCount = _vCount = 0; 213 | } 214 | } 215 | } 216 | 217 | void addWords(List words) { 218 | _wordsToInsert = words; 219 | _bestSol = getN() * getM(); 220 | initialTime = DateTime.now(); 221 | gen(0); 222 | 223 | _board = _tempBoard; 224 | } 225 | 226 | int freeSpaces() { 227 | var count = 0; 228 | for (var i = 0; i < getN(); i++) { 229 | for (var j = 0; j < getM(); j++) { 230 | if (_board[i][j] == ' ' || _board[i][j] == '*') count++; 231 | } 232 | } 233 | return count; 234 | } 235 | 236 | void gen(int pos) { 237 | if (pos >= _wordsToInsert.length || 238 | (DateTime.now().difference(initialTime)).inMinutes > 1) return; 239 | 240 | for (int i = pos; i < _wordsToInsert.length; i++) { 241 | var posi = bestPosition(_wordsToInsert[i]); 242 | if (posi != null) { 243 | var word = _wordsToInsert[i]; 244 | // if (posi.Item3==0 && inRTL) 245 | // word = word.Aggregate("", (x, y) => y + x); 246 | 247 | var value = posi.Item3 == 0 ? _hCount : _vCount; 248 | 249 | putWord(word, posi.Item1, posi.Item2, posi.Item3, value); 250 | gen(pos + 1); 251 | removeWord(word, posi.Item1, posi.Item2, posi.Item3); 252 | } else { 253 | gen(pos + 1); 254 | } 255 | } 256 | 257 | var c = freeSpaces(); 258 | if (c >= _bestSol) return; 259 | _bestSol = c; 260 | _tempBoard = new List>.from(_board); 261 | } 262 | 263 | void removeWord(String word, int x, int y, int dir) { 264 | var mat = dir == 0 ? _hWords : _vWords; 265 | var mat1 = dir == 0 ? _vWords : _hWords; 266 | 267 | for (var i = 0; i < word.length; i++) { 268 | int x1 = x + _dirX[dir] * i, y1 = y + _dirY[dir] * i; 269 | if (mat1[x1][y1] == 0) _board[x1][y1] = ' '; 270 | mat[x1][y1] = 0; 271 | } 272 | 273 | int xStar = x - _dirX[dir], yStar = y - _dirY[dir]; 274 | if (isValidPosition(xStar, yStar) && hasFactibleValueAround(xStar, yStar)) 275 | _board[xStar][yStar] = ' '; 276 | 277 | xStar = x + _dirX[dir] * word.length; 278 | yStar = y + _dirY[dir] * word.length; 279 | if (isValidPosition(xStar, yStar) && hasFactibleValueAround(xStar, yStar)) 280 | _board[xStar][yStar] = ' '; 281 | } 282 | 283 | bool hasFactibleValueAround(int x, int y) { 284 | for (var i = 0; i < _dirX.length; i++) { 285 | int x1 = x + _dirX[i], y1 = y + _dirY[i]; 286 | if (isValidPosition(x1, y1) && 287 | (_board[x1][y1] != ' ' || _board[x1][y1] == '*')) return true; 288 | x1 = x - _dirX[i]; 289 | y1 = y - _dirY[i]; 290 | if (isValidPosition(x1, y1) && 291 | (_board[x1][y1] != ' ' || _board[x1][y1] == '*')) return true; 292 | } 293 | return false; 294 | } 295 | 296 | bool isCompleted() { 297 | return (this.getN() * this.getM()) - this._nBlockInserted < 10; 298 | } 299 | 300 | List> getStarts() { 301 | return this._starts; 302 | } 303 | } 304 | -------------------------------------------------------------------------------- /cruci_verba/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 0910; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Profile; 307 | }; 308 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 309 | isa = XCBuildConfiguration; 310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 311 | buildSettings = { 312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 314 | DEVELOPMENT_TEAM = S8QB4VV633; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cruciVerba; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 355 | CLANG_WARN_STRICT_PROTOTYPES = YES; 356 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 357 | CLANG_WARN_UNREACHABLE_CODE = YES; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = NO; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | }; 384 | name = Debug; 385 | }; 386 | 97C147041CF9000F007C117D /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 389 | buildSettings = { 390 | ALWAYS_SEARCH_USER_PATHS = NO; 391 | CLANG_ANALYZER_NONNULL = YES; 392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 393 | CLANG_CXX_LIBRARY = "libc++"; 394 | CLANG_ENABLE_MODULES = YES; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_COMMA = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 409 | CLANG_WARN_STRICT_PROTOTYPES = YES; 410 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 411 | CLANG_WARN_UNREACHABLE_CODE = YES; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 414 | COPY_PHASE_STRIP = NO; 415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 416 | ENABLE_NS_ASSERTIONS = NO; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | GCC_C_LANGUAGE_STANDARD = gnu99; 419 | GCC_NO_COMMON_BLOCKS = YES; 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = NO; 428 | SDKROOT = iphoneos; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | VALIDATE_PRODUCT = YES; 431 | }; 432 | name = Release; 433 | }; 434 | 97C147061CF9000F007C117D /* Debug */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 440 | ENABLE_BITCODE = NO; 441 | FRAMEWORK_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | INFOPLIST_FILE = Runner/Info.plist; 446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 447 | LIBRARY_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cruciVerba; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | VERSIONING_SYSTEM = "apple-generic"; 454 | }; 455 | name = Debug; 456 | }; 457 | 97C147071CF9000F007C117D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 460 | buildSettings = { 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 463 | ENABLE_BITCODE = NO; 464 | FRAMEWORK_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "$(PROJECT_DIR)/Flutter", 467 | ); 468 | INFOPLIST_FILE = Runner/Info.plist; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 470 | LIBRARY_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cruciVerba; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | -------------------------------------------------------------------------------- /cruci_verba/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/services.dart'; 5 | import 'classes/CrossWord.dart'; 6 | import 'classes/Record.dart'; 7 | import 'helpers/MyDrawerHelper.dart'; 8 | 9 | import 'dart:convert'; 10 | import 'dart:io'; 11 | import 'package:path/path.dart' as p; 12 | import 'package:path_provider/path_provider.dart'; 13 | 14 | void main() => runApp(MyApp()); 15 | 16 | class MyApp extends StatelessWidget { 17 | @override 18 | Widget build(BuildContext context) { 19 | return MaterialApp( 20 | title: 'Cruciverba', 21 | theme: ThemeData( 22 | primarySwatch: Colors.blue, 23 | ), 24 | home: MyHomePage(title: 'Cruciverba Casuale'), 25 | ); 26 | } 27 | } 28 | 29 | class MyHomePage extends StatefulWidget { 30 | MyHomePage({Key key, this.title}) : super(key: key); 31 | 32 | final String title; 33 | 34 | Crossword c; 35 | 36 | @override 37 | _MyHomePageState createState() => _MyHomePageState(); 38 | } 39 | 40 | class _MyHomePageState extends State { 41 | String fileReaded; 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | widget.c = new Crossword(10, 10); 46 | widget.c.reset(); 47 | 48 | double width = MediaQuery.of(context).size.width; 49 | double height = MediaQuery.of(context).size.height; 50 | 51 | return FutureBuilder( 52 | future: _read(context, "data/data.json") 53 | .then(parseWords) 54 | .then((response) => response), 55 | builder: (context, data) { 56 | if (data.data == null) { 57 | print(" Cruciverba : \n " + widget.c.toString()); 58 | 59 | var row = MyDrawerHelper.getRowsInSquare(context, width, widget.c); 60 | 61 | row.add(Positioned( 62 | top: height / 2, 63 | left: width / 2, 64 | child: FlatButton( 65 | child: Text("BTN"), 66 | onPressed: () {}, 67 | ))); 68 | 69 | return Scaffold( 70 | body: Center( 71 | child: Stack( 72 | children: row, 73 | ), 74 | ), 75 | ); 76 | } else { 77 | return Scaffold( 78 | body: Center( 79 | child: new SizedBox( 80 | height: 50.0, 81 | width: 50.0, 82 | child: new CircularProgressIndicator( 83 | value: null, 84 | strokeWidth: 7.0, 85 | ), 86 | ), 87 | )); 88 | } 89 | }); 90 | } 91 | 92 | void actualizeData() { 93 | var count = widget.c.getN() * widget.c.getM(); 94 | 95 | var board = widget.c.getBoard(); 96 | var p = 0; 97 | 98 | for (var i = 0; i < widget.c.getN(); i++) { 99 | for (var j = 0; j < widget.c.getM(); j++) { 100 | var letter = board[i][j] == '*' ? ' ' : board[i][j]; 101 | 102 | if (letter != ' ') count--; 103 | 104 | p++; 105 | } 106 | } 107 | } 108 | 109 | Future parseWords(String s) async { 110 | List data; 111 | 112 | data = json.decode(s); 113 | 114 | num i = 0; 115 | 116 | data.shuffle(); 117 | 118 | data.forEach((record) { 119 | String parola = record["nome"].toString().toLowerCase(); 120 | 121 | if (!widget.c.isCompleted() /*i++ < 9000*/) { 122 | if (widget.c.addWord(parola) == 0) { 123 | // orrizzontale 124 | } else if (widget.c.addWord(parola) == 1) { 125 | // verticale 126 | } else { 127 | // non usata 128 | } 129 | } else { 130 | return; 131 | } 132 | }); 133 | 134 | actualizeData(); 135 | } 136 | 137 | Future _read(BuildContext context, String name) async { 138 | return DefaultAssetBundle.of(context).loadString(p.join('assets/', name)); 139 | // .then(parseWords); 140 | } 141 | } 142 | 143 | /* 144 | 145 | // num t1 = new DateTime.now().millisecondsSinceEpoch; 146 | 147 | 148 | List parole = [ 149 | "a", 150 | "abbandonare", 151 | "abbastanza", 152 | "abitare", 153 | "abito", 154 | "accadere", 155 | "accanto", 156 | "accendere", 157 | "accettare", 158 | "accogliere", 159 | "accompagnare", 160 | "accordo", 161 | "accorgersi", 162 | "acqua", 163 | "addirittura", 164 | "addosso", 165 | "adesso", 166 | "affare", 167 | "affatto", 168 | "affermare", 169 | "affrontare", 170 | "aggiungere", 171 | "ah", 172 | "aiutare", 173 | "aiuto", 174 | "albergo", 175 | "albero", 176 | "alcuno", 177 | "allontanare", 178 | "allora", 179 | "almeno", 180 | "alto", 181 | "altro", 182 | "alzare", 183 | "amare", 184 | "ambiente", 185 | "americano", 186 | "amico", 187 | "ammazzare", 188 | "ammettere", 189 | "amore", 190 | "ampio", 191 | "anche", 192 | "ancora", 193 | "andare", 194 | "angolo", 195 | "anima", 196 | "animale", 197 | "animo", 198 | "anno", 199 | "annunciare", 200 | "antico", 201 | "anzi", 202 | "apparire", 203 | "appartenere", 204 | "appena", 205 | "appoggiare", 206 | "appunto", 207 | "aprire", 208 | "argomento", 209 | "aria", 210 | "arma", 211 | "armare", 212 | "arrestare", 213 | "arrivare", 214 | "arte", 215 | "articolo", 216 | "ascoltare", 217 | "aspettare", 218 | "aspetto", 219 | "assai", 220 | "assicurare", 221 | "assistere", 222 | "assoluto", 223 | "assumere", 224 | "attaccare", 225 | "atteggiamento", 226 | "attendere", 227 | "attento", 228 | "attenzione", 229 | "attesa", 230 | "attimo", 231 | "attività", 232 | "atto", 233 | "attore", 234 | "attorno", 235 | "attraversare", 236 | "attuale", 237 | "aumentare", 238 | "automobile", 239 | "autore", 240 | "autorità", 241 | "avanti", 242 | "avanzare", 243 | "avere", 244 | "avvenire", 245 | "avvertire", 246 | "avvicinare", 247 | "avvocato", 248 | "azione", 249 | "azzurro", 250 | "baciare", 251 | "badare", 252 | "bagno", 253 | "bambina", 254 | "bambino", 255 | "base", 256 | "basso", 257 | "bastare", 258 | "battaglia", 259 | "battere", 260 | "bellezza", 261 | "bello", 262 | "bene", 263 | "bere", 264 | "bestia", 265 | "bianco", 266 | "biondo", 267 | "bisognare", 268 | "bisogno", 269 | "bocca", 270 | "bosco", 271 | "braccio", 272 | "bravo", 273 | "breve", 274 | "bruciare", 275 | "brutto", 276 | "buio", 277 | "buono", 278 | "buttare", 279 | "cadere", 280 | "caffè", 281 | "calcio", 282 | "caldo", 283 | "cambiare", 284 | "camera", 285 | "camminare", 286 | "campagna", 287 | "campo", 288 | "cane", 289 | "cantare", 290 | "capace", 291 | "capello", 292 | "capire", 293 | "capitare", 294 | "capo", 295 | "carattere", 296 | "caratteristico", 297 | "carne", 298 | "caro", 299 | "carta", 300 | "casa", 301 | "caso", 302 | "cattivo", 303 | "cattolico", 304 | "causa", 305 | "cavallo", 306 | "celebrare", 307 | "centrale", 308 | "centro", 309 | "cercare", 310 | "certamente", 311 | "certo", 312 | "che", 313 | "chi", 314 | "chiamare", 315 | "chiaro", 316 | "chiave", 317 | "chiedere", 318 | "chiesa", 319 | "chilometro", 320 | "chissà", 321 | "chiudere", 322 | "ci", 323 | "ciascuno", 324 | "cielo", 325 | "cioè", 326 | "circa", 327 | "cittadino", 328 | "città", 329 | "civile", 330 | "civiltà", 331 | "ciò", 332 | "classe", 333 | "collina", 334 | "collo", 335 | "colore", 336 | "coloro", 337 | "colpa", 338 | "colpire", 339 | "colpo", 340 | "come", 341 | "cominciare", 342 | "commercio", 343 | "commissione", 344 | "comodo", 345 | "compagnia", 346 | "compagno", 347 | "compiere", 348 | "completamente", 349 | "comporre", 350 | "comprare", 351 | "comprendere", 352 | "comune", 353 | "comunicazione", 354 | "comunque", 355 | "con", 356 | "concedere", 357 | "concetto", 358 | "concludere", 359 | "condizione", 360 | "condurre", 361 | "confessare", 362 | "confronto", 363 | "congresso", 364 | "conoscenza", 365 | "conoscere", 366 | "conseguenza", 367 | "consentire", 368 | "conservare", 369 | "considerare", 370 | "consiglio", 371 | "contadino", 372 | "contare", 373 | "contatto", 374 | "contenere", 375 | "contento", 376 | "continuare", 377 | "continuo", 378 | "conto", 379 | "contrario", 380 | "contro", 381 | "controllo", 382 | "convincere", 383 | "coprire", 384 | "coraggio", 385 | "corpo", 386 | "corrente", 387 | "correre", 388 | "corsa", 389 | "corso", 390 | "cortile", 391 | "cosa", 392 | "coscienza", 393 | "costa", 394 | "costituire", 395 | "costringere", 396 | "costruire", 397 | "costruzione", 398 | "creare", 399 | "credere", 400 | "crescere", 401 | "crisi", 402 | "cristiano", 403 | "croce", 404 | "cucina", 405 | "cui", 406 | "cultura", 407 | "cuore", 408 | "cura", 409 | "da", 410 | "dare", 411 | "davanti", 412 | "davvero", 413 | "decidere", 414 | "decisione", 415 | "dedicare", 416 | "denaro", 417 | "dente", 418 | "dentro", 419 | "descrivere", 420 | "desiderare", 421 | "desiderio", 422 | "destino", 423 | "destro", 424 | "determinare", 425 | "di", 426 | "dichiarare", 427 | "dietro", 428 | "difendere", 429 | "difesa", 430 | "differenza", 431 | "difficile", 432 | "difficoltà", 433 | "diffondere", 434 | "dimenticare", 435 | "dimostrare", 436 | "dinanzi", 437 | "dio", 438 | "dipendere", 439 | "dire", 440 | "diretto", 441 | "direttore", 442 | "direzione", 443 | "dirigere", 444 | "diritto", 445 | "discorso", 446 | "discutere", 447 | "disporre", 448 | "disposizione", 449 | "distanza", 450 | "distinguere", 451 | "distruggere", 452 | "dito", 453 | "divenire", 454 | "diventare", 455 | "diverso", 456 | "divertire", 457 | "dividere", 458 | "dolce", 459 | "dolore", 460 | "domanda", 461 | "domandare", 462 | "domani", 463 | "domenica", 464 | "don", 465 | "donna", 466 | "dopo", 467 | "dormire", 468 | "dottore", 469 | "dove", 470 | "dovere", 471 | "dubbio", 472 | "dunque", 473 | "durante", 474 | "durare", 475 | "duro", 476 | "e", 477 | "eccellenza", 478 | "eccetera", 479 | "ecco", 480 | "economico", 481 | "effetto", 482 | "egli", 483 | "eh", 484 | "elemento", 485 | "elettrico", 486 | "elevare", 487 | "energia", 488 | "enorme", 489 | "entrare", 490 | "entro", 491 | "epoca", 492 | "eppure", 493 | "erba", 494 | "errore", 495 | "esame", 496 | "escludere", 497 | "esempio", 498 | "esercito", 499 | "esistere", 500 | "esperienza", 501 | "esporre", 502 | "espressione", 503 | "esprimere", 504 | "essa", 505 | "essere", 506 | "esso", 507 | "estate", 508 | "estendere", 509 | "estero", 510 | "estremo", 511 | "età", 512 | "europeo", 513 | "evitare", 514 | "fabbrica", 515 | "faccia", 516 | "facile", 517 | "fame", 518 | "famiglia", 519 | "famoso", 520 | "fantasia", 521 | "fatica", 522 | "fatto", 523 | "favore", 524 | "fede", 525 | "felice", 526 | "fenomeno", 527 | "ferire", 528 | "fermare", 529 | "fermo", 530 | "ferro", 531 | "festa", 532 | "fianco", 533 | "fiducia", 534 | "figlia", 535 | "figlio", 536 | "figura", 537 | "figurare", 538 | "film", 539 | "filo", 540 | "finalmente", 541 | "finché", 542 | "fine", 543 | "finestra", 544 | "finire", 545 | "fino", 546 | "fiore", 547 | "fissare", 548 | "fiume", 549 | "foglia", 550 | "folla", 551 | "fondare", 552 | "fondo", 553 | "forma", 554 | "formare", 555 | "fornire", 556 | "forse", 557 | "forte", 558 | "fortuna", 559 | "forza", 560 | "fra", 561 | "francese", 562 | "frase", 563 | "fratello", 564 | "freddo", 565 | "fresco", 566 | "fretta", 567 | "fronte", 568 | "frutto", 569 | "fuggire", 570 | "fumare", 571 | "funzione", 572 | "fuoco", 573 | "fuori", 574 | "futuro", 575 | "gamba", 576 | "gatto", 577 | "generale", 578 | "genere", 579 | "gente", 580 | "gesto", 581 | "gettare", 582 | "giallo", 583 | "giardino", 584 | "giocare", 585 | "gioco", 586 | "gioia", 587 | "giornale", 588 | "giornata", 589 | "giorno", 590 | "giovane", 591 | "giovanotto", 592 | "girare", 593 | "giro", 594 | "giudicare", 595 | "giudizio", 596 | "giugno", 597 | "giungere", 598 | "giustizia", 599 | "giusto", 600 | "già", 601 | "giù", 602 | "godere", 603 | "governo", 604 | "grado", 605 | "grande", 606 | "grave", 607 | "grazia", 608 | "grazie", 609 | "greco", 610 | "gridare", 611 | "grigio", 612 | "grosso", 613 | "gruppo", 614 | "guardare", 615 | "guardia", 616 | "guerra", 617 | "guidare", 618 | "gusto", 619 | "idea", 620 | "ieri", 621 | "il", 622 | "immaginare", 623 | "immagine", 624 | "imparare", 625 | "impedire", 626 | "imporre", 627 | "importante", 628 | "importanza", 629 | "importare", 630 | "impossibile", 631 | "impressione", 632 | "improvviso", 633 | "in", 634 | "incontrare", 635 | "indicare", 636 | "indietro", 637 | "industria", 638 | "industriale", 639 | "infatti", 640 | "infine", 641 | "inglese", 642 | "iniziare", 643 | "inizio", 644 | "innamorare", 645 | "inoltre", 646 | "insegnare", 647 | "insieme", 648 | "insistere", 649 | "insomma", 650 | "intanto", 651 | "intendere", 652 | "intenzione", 653 | "interessante", 654 | "interessare", 655 | "interesse", 656 | "internazionale", 657 | "interno", 658 | "intero", 659 | "intorno", 660 | "inutile", 661 | "invece", 662 | "inverno", 663 | "invitare", 664 | "io", 665 | "isola", 666 | "istante", 667 | "istituto", 668 | "italiano", 669 | "labbro", 670 | "lago", 671 | "lanciare", 672 | "largo", 673 | "lasciare", 674 | "latino", 675 | "lato", 676 | "latte", 677 | "lavorare", 678 | "lavoro", 679 | "legare", 680 | "legge", 681 | "leggere", 682 | "leggero", 683 | "lei", 684 | "lettera", 685 | "letto", 686 | "levare", 687 | "li", 688 | "liberare", 689 | "libero", 690 | "libertà", 691 | "libro", 692 | "limitare", 693 | "limite", 694 | "linea", 695 | "lingua", 696 | "lira", 697 | "lo", 698 | "lontano", 699 | "loro", 700 | "lotta", 701 | "luce", 702 | "lui", 703 | "luna", 704 | "lungo", 705 | "luogo", 706 | "là", 707 | "lì", 708 | "ma", 709 | "macchina", 710 | "madre", 711 | "maestro", 712 | "magari", 713 | "maggio", 714 | "maggiore", 715 | "malattia", 716 | "male", 717 | "mamma", 718 | "mancare", 719 | "mandare", 720 | "mangiare", 721 | "maniera", 722 | "mano", 723 | "mantenere", 724 | "mare", 725 | "marito", 726 | "massa", 727 | "massimo", 728 | "materia", 729 | "matrimonio", 730 | "mattina", 731 | "mattino", 732 | "medesimo", 733 | "medico", 734 | "medio", 735 | "meglio", 736 | "memoria", 737 | "meno", 738 | "mente", 739 | "mentre", 740 | "mercato", 741 | "meritare", 742 | "merito", 743 | "mese", 744 | "messa", 745 | "mestiere", 746 | "metro", 747 | "mettere", 748 | "metà", 749 | "mezzo", 750 | "mi", 751 | "migliore", 752 | "milione", 753 | "militare", 754 | "minimo", 755 | "ministro", 756 | "minore", 757 | "minuto", 758 | "mio", 759 | "misura", 760 | "moderno", 761 | "modo", 762 | "moglie", 763 | "molto", 764 | "momento", 765 | "mondo", 766 | "montagna", 767 | "monte", 768 | "morale", 769 | "morire", 770 | "morte", 771 | "mostrare", 772 | "motivo", 773 | "movimento", 774 | "muovere", 775 | "muro", 776 | "musica", 777 | "nascere", 778 | "nascondere", 779 | "natura", 780 | "naturale", 781 | "naturalmente", 782 | "nave", 783 | "nazionale", 784 | "nazione", 785 | "ne", 786 | "neanche", 787 | "necessario", 788 | "necessità", 789 | "nemico", 790 | "nemmeno", 791 | "neppure", 792 | "nero", 793 | "nessuno", 794 | "niente", 795 | "no", 796 | "nobile", 797 | "noi", 798 | "nome", 799 | "non", 800 | "nord", 801 | "normale", 802 | "nostro", 803 | "notare", 804 | "notevole", 805 | "notizia", 806 | "noto", 807 | "notte", 808 | "nudo", 809 | "nulla", 810 | "numero", 811 | "numeroso", 812 | "nuovo", 813 | "né", 814 | "o", 815 | "occasione", 816 | "occhio", 817 | "occorrere", 818 | "odore", 819 | "offendere", 820 | "offrire", 821 | "oggetto", 822 | "oggi", 823 | "ogni", 824 | "ognuno", 825 | "oh", 826 | "oltre", 827 | "ombra", 828 | "onore", 829 | "opera", 830 | "operaio", 831 | "operazione", 832 | "opinione", 833 | "opporre", 834 | "oppure", 835 | "ora", 836 | "oramai", 837 | "ordinare", 838 | "ordine", 839 | "orecchio", 840 | "organizzare", 841 | "origine", 842 | "oro", 843 | "ospedale", 844 | "osservare", 845 | "ottenere", 846 | "pace", 847 | "padre", 848 | "padrone", 849 | "paese", 850 | "pagare", 851 | "pagina", 852 | "palazzo", 853 | "pane", 854 | "papà", 855 | "parecchio", 856 | "parere", 857 | "parete", 858 | "parlare", 859 | "parola", 860 | "parte", 861 | "partecipare", 862 | "particolare", 863 | "partire", 864 | "partito", 865 | "passare", 866 | "passato", 867 | "passione", 868 | "passo", 869 | "patria", 870 | "paura", 871 | "pazzo", 872 | "peccato", 873 | "peggio", 874 | "pelle", 875 | "pena", 876 | "pensare", 877 | "pensiero", 878 | "per", 879 | "perché", 880 | "perciò", 881 | "perdere", 882 | "perfetto", 883 | "perfino", 884 | "pericolo", 885 | "pericoloso", 886 | "periodo", 887 | "permettere", 888 | "persona", 889 | "personaggio", 890 | "personale", 891 | "però", 892 | "pesare", 893 | "peso", 894 | "pezzo", 895 | "piacere", 896 | "piangere", 897 | "piano", 898 | "pianta", 899 | "piantare", 900 | "pianura", 901 | "piazza", 902 | "piccolo", 903 | "piede", 904 | "pieno", 905 | "pietra", 906 | "pietà", 907 | "piuttosto", 908 | "più", 909 | "poco", 910 | "poesia", 911 | "poeta", 912 | "poiché", 913 | "politica", 914 | "politico", 915 | "polizia", 916 | "pomeriggio", 917 | "ponte", 918 | "popolazione", 919 | "popolo", 920 | "porre", 921 | "porta", 922 | "portare", 923 | "porto", 924 | "posare", 925 | "posizione", 926 | "possedere", 927 | "possibile", 928 | "possibilità", 929 | "posto", 930 | "potenza", 931 | "potere", 932 | "povero", 933 | "pranzo", 934 | "prato", 935 | "preciso", 936 | "preferire", 937 | "pregare", 938 | "prendere", 939 | "preoccupare", 940 | "preparare", 941 | "presentare", 942 | "presente", 943 | "presenza", 944 | "presidente", 945 | "presso", 946 | "presto", 947 | "prevedere", 948 | "prezzo", 949 | "prima", 950 | "primo", 951 | "principale", 952 | "principe", 953 | "principio", 954 | "privato", 955 | "probabilmente", 956 | "problema", 957 | "procedere", 958 | "processo", 959 | "prodotto", 960 | "produrre", 961 | "produzione", 962 | "professore", 963 | "profondo", 964 | "programma", 965 | "promettere", 966 | "pronto", 967 | "proporre", 968 | "proposito", 969 | "proposta", 970 | "proprio", 971 | "prossimo", 972 | "prova", 973 | "provare", 974 | "provincia", 975 | "provocare", 976 | "provvedere", 977 | "pubblicare", 978 | "pubblico", 979 | "punta", 980 | "punto", 981 | "pure", 982 | "puro", 983 | "qua", 984 | "quadro", 985 | "qualche", 986 | "qualcosa", 987 | "qualcuno", 988 | "quale", 989 | "qualità", 990 | "qualsiasi", 991 | "qualunque", 992 | "quanto", 993 | "quarto", 994 | "quasi", 995 | "quello", 996 | "questione", 997 | "questo", 998 | "qui", 999 | "quindi", 1000 | "raccogliere", 1001 | "raccontare", 1002 | "ragazza", 1003 | "ragazzo", 1004 | "raggiungere", 1005 | "ragione", 1006 | "rapido", 1007 | "rapporto", 1008 | "rappresentare", 1009 | "reale", 1010 | "realtà", 1011 | "recare", 1012 | "recente", 1013 | "regione", 1014 | "regno", 1015 | "relazione", 1016 | "religioso", 1017 | "rendere", 1018 | "repubblica", 1019 | "resistere", 1020 | "restare", 1021 | "resto", 1022 | "ricchezza", 1023 | "ricco", 1024 | "ricerca", 1025 | "ricevere", 1026 | "richiedere", 1027 | "riconoscere", 1028 | "ricordare", 1029 | "ricordo", 1030 | "ridere", 1031 | "ridurre", 1032 | "riempire", 1033 | "rientrare", 1034 | "riferire", 1035 | "rifiutare", 1036 | "riguardare", 1037 | "rimanere", 1038 | "rimettere", 1039 | "ringraziare", 1040 | "ripetere", 1041 | "riportare", 1042 | "riprendere", 1043 | "risolvere", 1044 | "rispetto", 1045 | "rispondere", 1046 | "risposta", 1047 | "risultare", 1048 | "risultato", 1049 | "ritenere", 1050 | "ritornare", 1051 | "ritorno", 1052 | "ritrovare", 1053 | "riunire", 1054 | "riuscire", 1055 | "riva", 1056 | "rivedere", 1057 | "rivelare", 1058 | "rivolgere", 1059 | "rivoluzione", 1060 | "roba", 1061 | "romano", 1062 | "rompere", 1063 | "rosso", 1064 | "russo", 1065 | "sacrificio", 1066 | "sacro", 1067 | "sala", 1068 | "salire", 1069 | "saltare", 1070 | "salutare", 1071 | "salvare", 1072 | "sangue", 1073 | "sapere", 1074 | "sbagliare", 1075 | "scala", 1076 | "scappare", 1077 | "scegliere", 1078 | "scena", 1079 | "scendere", 1080 | "scherzare", 1081 | "scienza", 1082 | "scomparire", 1083 | "scopo", 1084 | "scoppiare", 1085 | "scoprire", 1086 | "scorrere", 1087 | "scrittore", 1088 | "scrivere", 1089 | "scuola", 1090 | "scusare", 1091 | "se", 1092 | "secolo", 1093 | "secondo", 1094 | "sede", 1095 | "sedere", 1096 | "segnare", 1097 | "segno", 1098 | "segretario", 1099 | "segreto", 1100 | "seguire", 1101 | "seguito", 1102 | "sembrare", 1103 | "semplice", 1104 | "senso", 1105 | "sentimento", 1106 | "sentire", 1107 | "senza", 1108 | "sera", 1109 | "sereno", 1110 | "serie", 1111 | "serio", 1112 | "servire", 1113 | "servizio", 1114 | "settimana", 1115 | "sforzo", 1116 | "sguardo", 1117 | "si", 1118 | "sicurezza", 1119 | "sicuro", 1120 | "significare", 1121 | "signora", 1122 | "signore", 1123 | "signorina", 1124 | "silenzio", 1125 | "simile", 1126 | "sinistro", 1127 | "sino", 1128 | "sistema", 1129 | "situazione", 1130 | "smettere", 1131 | "sociale", 1132 | "società", 1133 | "soffrire", 1134 | "sognare", 1135 | "sogno", 1136 | "soldato", 1137 | "sole", 1138 | "solito", 1139 | "solo", 1140 | "soltanto", 1141 | "soluzione", 1142 | "sonno", 1143 | "sopra", 1144 | "soprattutto", 1145 | "sorella", 1146 | "sorgere", 1147 | "sorprendere", 1148 | "sorridere", 1149 | "sorriso", 1150 | "sostenere", 1151 | "sottile", 1152 | "sotto", 1153 | "spalla", 1154 | "spazio", 1155 | "speciale", 1156 | "specie", 1157 | "spegnere", 1158 | "speranza", 1159 | "sperare", 1160 | "spesa", 1161 | "spesso", 1162 | "spettacolo", 1163 | "spiegare", 1164 | "spingere", 1165 | "spirito", 1166 | "sposare", 1167 | "stabilire", 1168 | "staccare", 1169 | "stagione", 1170 | "stamattina", 1171 | "stampa", 1172 | "stanco", 1173 | "stanza", 1174 | "stare", 1175 | "stasera", 1176 | "stato", 1177 | "stazione", 1178 | "stella", 1179 | "stesso", 1180 | "storia", 1181 | "storico", 1182 | "strada", 1183 | "straniero", 1184 | "strano", 1185 | "straordinario", 1186 | "stringere", 1187 | "strumento", 1188 | "studiare", 1189 | "studio", 1190 | "stupido", 1191 | "su", 1192 | "subito", 1193 | "succedere", 1194 | "successo", 1195 | "sud", 1196 | "suo", 1197 | "suonare", 1198 | "superare", 1199 | "superiore", 1200 | "svegliare", 1201 | "sviluppo", 1202 | "svolgere", 1203 | "sì", 1204 | "tacere", 1205 | "tagliare", 1206 | "tale", 1207 | "tanto", 1208 | "tardi", 1209 | "tavola", 1210 | "tavolo", 1211 | "teatro", 1212 | "tecnico", 1213 | "tedesco", 1214 | "temere", 1215 | "tempo", 1216 | "tendere", 1217 | "tenere", 1218 | "tentare", 1219 | "termine", 1220 | "terreno", 1221 | "territorio", 1222 | "terzo", 1223 | "testa", 1224 | "tipo", 1225 | "tirare", 1226 | "titolo", 1227 | "toccare", 1228 | "togliere", 1229 | "tono", 1230 | "tornare", 1231 | "tra", 1232 | "tranquillo", 1233 | "trarre", 1234 | "trascinare", 1235 | "trasformare", 1236 | "trattare", 1237 | "tratto", 1238 | "treno", 1239 | "triste", 1240 | "troppo", 1241 | "trovare", 1242 | "tu", 1243 | "tuo", 1244 | "tuttavia", 1245 | "tutto", 1246 | "uccidere", 1247 | "udire", 1248 | "ufficiale", 1249 | "ufficio", 1250 | "uguale", 1251 | "ultimo", 1252 | "umano", 1253 | "un", 1254 | "unico", 1255 | "unire", 1256 | "università", 1257 | "uno", 1258 | "uomo", 1259 | "usare", 1260 | "uscire", 1261 | "uso", 1262 | "utile", 1263 | "valere", 1264 | "valle", 1265 | "valore", 1266 | "vario", 1267 | "vasto", 1268 | "vecchio", 1269 | "vedere", 1270 | "vendere", 1271 | "venire", 1272 | "vento", 1273 | "veramente", 1274 | "verde", 1275 | "verità", 1276 | "vero", 1277 | "verso", 1278 | "vestire", 1279 | "vestito", 1280 | "vi", 1281 | "via", 1282 | "viaggio", 1283 | "vicino", 1284 | "villa", 1285 | "vincere", 1286 | "vino", 1287 | "visita", 1288 | "viso", 1289 | "vista", 1290 | "vita", 1291 | "vivere", 1292 | "vivo", 1293 | "voce", 1294 | "voglia", 1295 | "voi", 1296 | "volare", 1297 | "volere", 1298 | "volgere", 1299 | "volontà", 1300 | "volta", 1301 | "voltare", 1302 | "volto", 1303 | "vostro", 1304 | "vuoto", 1305 | "zia", 1306 | "zio", 1307 | "zitto", 1308 | "zona" 1309 | ]; 1310 | 1311 | */ 1312 | --------------------------------------------------------------------------------